net: fix race write() before and after connect()
authorkoichik <koichik@improvement.jp>
Sun, 26 Feb 2012 19:13:08 +0000 (04:13 +0900)
committerkoichik <koichik@improvement.jp>
Tue, 28 Feb 2012 10:27:27 +0000 (19:27 +0900)
commit63431796f4cdeb726cf8a4fe91806702cf09619c
tree6e7458cf4cf2261afd9f8df660b072b862d0266c
parent692bcbe559b088247b8801cdb27c8ddc4b9eb8dd
net: fix race write() before and after connect()

Fixes #2827.
lib/net.js
test/simple/test-net-write-connect-write.js [new file with mode: 0644]