Commit c979e32a authored by unknown's avatar unknown

Merge perch.ndb.mysql.com:/home/jonas/src/50-work

into  perch.ndb.mysql.com:/home/jonas/src/51-telco-gca


storage/ndb/src/common/transporter/TransporterRegistry.cpp:
  merge
parents 746ee8f8 d1625447
...@@ -745,10 +745,6 @@ TransporterRegistry::poll_TCP(Uint32 timeOutMillis) ...@@ -745,10 +745,6 @@ TransporterRegistry::poll_TCP(Uint32 timeOutMillis)
return 0; return 0;
} }
struct timeval timeout;
timeout.tv_sec = timeOutMillis / 1000;
timeout.tv_usec = (timeOutMillis % 1000) * 1000;
NDB_SOCKET_TYPE maxSocketValue = -1; NDB_SOCKET_TYPE maxSocketValue = -1;
// Needed for TCP/IP connections // Needed for TCP/IP connections
...@@ -774,6 +770,12 @@ TransporterRegistry::poll_TCP(Uint32 timeOutMillis) ...@@ -774,6 +770,12 @@ TransporterRegistry::poll_TCP(Uint32 timeOutMillis)
hasdata |= t->hasReceiveData(); hasdata |= t->hasReceiveData();
} }
timeOutMillis = hasdata ? 0 : timeOutMillis;
struct timeval timeout;
timeout.tv_sec = timeOutMillis / 1000;
timeout.tv_usec = (timeOutMillis % 1000) * 1000;
// The highest socket value plus one // The highest socket value plus one
maxSocketValue++; maxSocketValue++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment