Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(net): add socket timeouts to Server and Client #621

Merged
merged 1 commit into from
Jul 29, 2015
Merged

Conversation

seanmonstar
Copy link
Member

While these methods are marked unstable in libstd, this is behind a
feature flag, timeouts. The Client and Server both have
set_read_timeout and set_write_timeout methods, that will affect all
connections with that entity.

BREAKING CHANGE: Any custom implementation of NetworkStream must now
implement set_read_timeout and set_write_timeout, so those will
break. Most users who only use the provided streams should work with
no changes needed.

Closes #315

@reem r?

While these methods are marked unstable in libstd, this is behind a
feature flag, `timeouts`. The Client and Server both have
`set_read_timeout` and `set_write_timeout` methods, that will affect all
connections with that entity.

BREAKING CHANGE: Any custom implementation of NetworkStream must now
  implement `set_read_timeout` and `set_write_timeout`, so those will
  break. Most users who only use the provided streams should work with
  no changes needed.

Closes #315
seanmonstar added a commit that referenced this pull request Jul 29, 2015
feat(net): add socket timeouts to Server and Client
@seanmonstar seanmonstar merged commit 0a59d73 into master Jul 29, 2015
@seanmonstar seanmonstar deleted the timeout branch July 29, 2015 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant