diff options
author | deva <deva> | 2008-05-20 10:17:14 +0000 |
---|---|---|
committer | deva <deva> | 2008-05-20 10:17:14 +0000 |
commit | 91d56787bec83a3a7c2ad6afd84d2b82c5d869b9 (patch) | |
tree | 32cfe22c3024de280c7516b561b8bfd98b266ac4 /server/src/tcpsocket.cc | |
parent | 7d81d456702e3c5b0caead6e44f2c2f236d2fa41 (diff) |
Removed obsolete macro.h and macro_parser.cc,h
Diffstat (limited to 'server/src/tcpsocket.cc')
-rw-r--r-- | server/src/tcpsocket.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/tcpsocket.cc b/server/src/tcpsocket.cc index 90f71a5..d361b7b 100644 --- a/server/src/tcpsocket.cc +++ b/server/src/tcpsocket.cc @@ -230,7 +230,7 @@ int TCPSocket::read(char *buf, int size) // Wait until something is ready to be read ( peek'a'loop ). errno = EAGAIN; while( recv(sock, buf, 1, MSG_PEEK) == -1 && errno == EAGAIN) { - sleep(1); + usleep(10); } // Now read it @@ -238,6 +238,8 @@ int TCPSocket::read(char *buf, int size) throw TCPReadException(strerror(errno)); } + // fwrite(buf, size, 1, stdout); fflush(stdout); + return res; } |