mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
Merge perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
This commit is contained in:
commit
f975b3e398
1 changed files with 6 additions and 4 deletions
|
@ -746,10 +746,6 @@ TransporterRegistry::poll_TCP(Uint32 timeOutMillis)
|
|||
return 0;
|
||||
}
|
||||
|
||||
struct timeval timeout;
|
||||
timeout.tv_sec = timeOutMillis / 1000;
|
||||
timeout.tv_usec = (timeOutMillis % 1000) * 1000;
|
||||
|
||||
NDB_SOCKET_TYPE maxSocketValue = -1;
|
||||
|
||||
// Needed for TCP/IP connections
|
||||
|
@ -775,6 +771,12 @@ TransporterRegistry::poll_TCP(Uint32 timeOutMillis)
|
|||
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
|
||||
maxSocketValue++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue