summaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/connection.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 045ea17..c68c519 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -215,6 +215,8 @@ int Connection::readInput()
215 } 215 }
216 else 216 else
217 { 217 {
218 if( nbytes == 0 )
219 break;
218 nTotalRead += nbytes; 220 nTotalRead += nbytes;
219 appendInput( buffer, nbytes ); 221 appendInput( buffer, nbytes );
220 /* Data read. */ 222 /* Data read. */
@@ -258,6 +260,7 @@ bool Connection::readInput( int nSec, int nUSec, int *pnSecBack, int *pnUSecBack
258 } 260 }
259 else if( retval ) 261 else if( retval )
260 { 262 {
263 printf("retval=%d, nSocket=%d,%d, sec=%d, usec=%d\n", retval, nSocket, FD_ISSET( nSocket, &rfds ), tv.tv_sec, tv.tv_usec );
261 // None of them have data, but the connection is still active. 264 // None of them have data, but the connection is still active.
262 if( readInput() == 0 ) 265 if( readInput() == 0 )
263 { 266 {