Skip to content

feat: nonblocking tcp connect

Bogdan Berezovskiy requested to merge nonbocking-tcp into master

For now it is blocking to call network::client::tcp::TcpStream::connect, so i adapted it to work in fiber-based async runtime.

Summary

  • feat: std::net::TcpStream::connect replaced with direct libc::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

Merge request reports