]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #13604 : alexcrichton/rust/connect-timeout, r=brson
authorbors <bors@rust-lang.org>
Sat, 19 Apr 2014 07:56:30 +0000 (00:56 -0700)
committerbors <bors@rust-lang.org>
Sat, 19 Apr 2014 07:56:30 +0000 (00:56 -0700)
This adds a `TcpStream::connect_timeout` function in order to assist opening
connections with a timeout (cc #13523). There isn't really much design space for
this specific operation (unlike timing out normal blocking reads/writes), so I
am fairly confident that this is the correct interface for this function.

The function is marked #[experimental] because it takes a u64 timeout argument,
and the u64 type is likely to change in the future.


Trivial merge