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.
2 parents afbaacf + deddeb0 commit ca7d4dbCopy full SHA for ca7d4db
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