aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorliuxiaobo <icexile@qq.com>2016-07-04 17:08:46 +0800
committerSaúl Ibarra Corretgé <saghul@gmail.com>2016-07-18 10:28:48 +0100
commit3a4f2d31550037c96ea0113fe294e4fdc69a1f99 (patch)
tree780d9493275a96651405c91c6028688d61c9dbc1 /docs/src
parent00dab91ce58c2399f2db5f484e6f718faba51de6 (diff)
downloadlibuv-3a4f2d31550037c96ea0113fe294e4fdc69a1f99.tar.gz
libuv-3a4f2d31550037c96ea0113fe294e4fdc69a1f99.zip
unix: fix errno and retval conflict
We not only check the return value, but also check the errno != 0. Because in rare cases connect() will return -1 but the errno is 0 (for example, on Android 4.3, OnePlus phone A0001_12_150227) and actually the tcp three-way handshake is completed. PR-URL: https://github.com/libuv/libuv/pull/936 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Imran Iqbal <imran@imraniqbal.org> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions