mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
For nonblocking connections, wait for socket io if errno == EINTR, not EINPROGRESS.
Thanks to Paul Ashford <arougthopher@lizardland.net> for the patch. Bug #70217 r=cls a=shaver
This commit is contained in:
parent
c4c909190e
commit
e942d69cd8
@ -588,7 +588,7 @@ retry:
|
|||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
#else /* BONE_VERSION */
|
#else /* BONE_VERSION */
|
||||||
if(!fd->secret->nonblocking && (err == EINPROGRESS)) {
|
if(!fd->secret->nonblocking && (err == EINTR)) {
|
||||||
|
|
||||||
rv = socket_io_wait(osfd, WRITE_FD, timeout);
|
rv = socket_io_wait(osfd, WRITE_FD, timeout);
|
||||||
if (rv == -1) {
|
if (rv == -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user