Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: set state to CONNECTING before initializing tcp handle
This garuntees that if hsk_peer_open() fails, that hsk_peer_close() will call uv_close() before freeing the peer, preventing a race condition where libuv tries to free the connection handle after the peer has been destroyed.
- Loading branch information