dpc / mioco.pre-0.9

Scalable, coroutine-based, asynchronous IO handling library for Rust programming language. (aka MIO COroutines).
Mozilla Public License 2.0
457 stars 30 forks source link

Block on write when connecting to TcpStream #84

Closed hjr3 closed 8 years ago

hjr3 commented 8 years ago

Fixed bug where writing to TcpStream could result in a "Socket is not connected" error. The tcp_basic_client_server test has been updated to ensure a pending socket connection will block when trying to write.

Fixes #83.

hjr3 commented 8 years ago

@dpc bug fix and tests included. Let me know if this is what you had in mind. I am happy to make any edits to get this merge-ready.

dpc commented 8 years ago

LGTM! Thanks!