HPUX networking issues fixed
authorAlex Kirhenshtein <alk@netxms.org>
Thu, 22 Aug 2013 14:36:48 +0000 (14:36 +0000)
committerAlex Kirhenshtein <alk@netxms.org>
Thu, 22 Aug 2013 14:36:48 +0000 (14:36 +0000)
src/libnetxms/tools.cpp

index d312bd5..4e66370 100644 (file)
@@ -866,7 +866,11 @@ retry:
 #endif
                if (nRet <= 0)
                {
-                       if (WSAGetLastError() == WSAEWOULDBLOCK)
+                       if (WSAGetLastError() == WSAEWOULDBLOCK
+#ifndef _WIN32
+                       || errno == EAGAIN
+#endif
+                       )
                        {
                                // Wait until socket becomes available for writing
                                struct timeval tv;