feat: nonblocking tcp connect
For now it is blocking to call network::client::tcp::TcpStream::connect
, so i adapted it to work in fiber-based async runtime.
- Closes #185 (closed)
- Closes #157 (closed) - i did not get any error for socket not connected on darwin.
Summary
- feat:
std::net::TcpStream::connect
replaced with directlibc::socket
initialization, with waits for initialization through TcpConnector which uses coio_wait under the hood - feat: added
TcpStream::connect_timeout
method
Ensure that
-
New code is covered by tests -
API is documented -
Changelog is up to date -
Version is bumped in the appropriate Cargo.toml
files
Edited by Bogdan Berezovskiy