Repository navigation
Conversation
| /// let stream = TcpStream::connect("127.0.0.1:8080") | ||
| /// .expect("Couldn't connect to the server..."); | ||
| /// stream.set_deferaccept(Duration::from_secs(1u64)).expect("set_deferaccept call failed"); | ||
| /// stream.set_defer_accept(Duration::from_secs(1u64)).expect("set_defer_accept call failed"); |
There was a problem hiding this comment.
This seems like a weird example -- this is suppose to be set on a socket before bind(...), not on the client socket?
There was a problem hiding this comment.
Updated, how about the current?
There was a problem hiding this comment.
The update is still setting it after bind -- is this actually effective as presented here? Maybe we can't give a good example since we don't have an unbound socket API?
There was a problem hiding this comment.
Fair, removed the example.
This comment has been minimized.
This comment has been minimized.
b0524a9 to
5dc0331
Compare
This comment has been minimized.
This comment has been minimized.
|
#164461 (comment) is I think not addressed yet. @rustbot author |
5dc0331 to
8da9f07
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@rustbot ready |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
^-- should be spurious or unrelated |
Address review points in #154834
I've chosen
Result<Option<Duration>>as noted in #154834 (comment), but we may want to discuss further and I'd like to hear opinions.r? @Mark-Simulacrum @the8472