v8: debug: fix error handling in SendConnectMessage()
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 24 Apr 2012 01:41:49 +0000 (03:41 +0200)
committerisaacs <i@izs.me>
Sat, 9 Jun 2012 15:10:03 +0000 (08:10 -0700)
commit26f754d9ddcdab02cbed4eab6c3f7a36907e8a13
tree89dcbd5999eb28ccf381ef4fdf66ce18a0cabd66
parentc08357c32fd52c89a4f952ff9dd4ac0608adb88a
v8: debug: fix error handling in SendConnectMessage()

The old error handling code checked if the return value of Socket::Send() != 0,
which is wrong because Socket::Send() can write less bytes than requested or
return -1 on error.
deps/v8/src/debug-agent.cc