tcp, pipe: don't assert on uv_accept() errors
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 15 Feb 2012 15:45:02 +0000 (16:45 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 15 Feb 2012 15:45:14 +0000 (16:45 +0100)
commit0685707bc643250de297b59f4f58878d4c17292e
treeb09cf89a276be700c55a662627ea30c234b999fa
parent14b20ffc3006eaebb08840601a1330e5204c290c
tcp, pipe: don't assert on uv_accept() errors

It's possible for a new connection to be closed in the window between the
accept() syscall and the call to uv_accept(). Deal with it and move on, don't
assert.
src/pipe_wrap.cc
src/tcp_wrap.cc