Reverting SocketComm change tuning I/O behaviour.

Not sure that's right.
This commit is contained in:
Robin Sommer 2012-04-04 19:27:43 -07:00
parent d0b68771ef
commit c92dc7e6af

View file

@ -3399,8 +3399,10 @@ void SocketComm::Run()
small_timeout.tv_usec = small_timeout.tv_usec =
io->CanWrite() || io->CanRead() ? 1 : 10; io->CanWrite() || io->CanRead() ? 1 : 10;
#if 0
if ( ! io->CanWrite() ) if ( ! io->CanWrite() )
usleep(10); usleep(10);
#endif
int a = select(max_fd + 1, &fd_read, &fd_write, &fd_except, int a = select(max_fd + 1, &fd_read, &fd_write, &fd_except,
&small_timeout); &small_timeout);