joyent/libuv — pull request #1018 by indutny (2013-12-02 11:26:38+00:00)
Title: stream: return ENOTCONN on write before connect cb

Be consistent with windows and error on `uv_write()` if called before
`uv_tcp_connect()`'s callback. We are not unqueuing data anyway.

/cc @saghul