]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5642 --resolve add back the ETIMEDOUT check, needed on Mac
authorSeven Du <dujinfang@gmail.com>
Fri, 13 Dec 2013 03:46:14 +0000 (11:46 +0800)
committerSeven Du <dujinfang@gmail.com>
Fri, 13 Dec 2013 03:46:14 +0000 (11:46 +0800)
libs/sofia-sip/libsofia-sip-ua/tport/ws.c

index 41df93fdcfb58d5fbea41c2048d59494caa58f36..f5534d61756f5b15274f34ab4a50986812fb40bb 100644 (file)
@@ -290,7 +290,7 @@ int ws_handshake(wsh_t *wsh)
 
        ws_raw_write(wsh, respond, strlen(respond));
        wsh->handshake = 1;
-       
+
        return 0;
 
  err:
@@ -809,7 +809,7 @@ int xp_errno(void)
 
 int xp_is_blocking(int errcode)
 {
-  return errcode == EAGAIN || errcode == EWOULDBLOCK || errcode == EINPROGRESS || errcode == EINTR;
+  return errcode == EAGAIN || errcode == EWOULDBLOCK || errcode == EINPROGRESS || errcode == EINTR || errcode == ETIMEDOUT;
 }
 
 #endif