We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afbaacf commit deddeb0Copy full SHA for deddeb0
src/sys/unix/mod.rs
@@ -439,7 +439,7 @@ impl Socket {
439
unsafe {
440
self.setsockopt(libc::SOL_SOCKET,
441
libc::SO_RCVTIMEO,
442
- dur2timeval(dur))
+ dur2timeval(dur)?)
443
}
444
445
@@ -453,7 +453,7 @@ impl Socket {
453
454
455
libc::SO_SNDTIMEO,
456
457
458
459
0 commit comments