aboutsummaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-25 22:07:53 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-25 22:07:53 +0000
commite1f398363812115611d20c0c803802c78ed65974 (patch)
tree0a685408d2a720f8ae9293692aeda17c80c8bc10 /src/connection.cpp
parent0a700ced28520be170c0965191f2450a2e4a82ac (diff)
downloadlibbu++-e1f398363812115611d20c0c803802c78ed65974.tar.gz
libbu++-e1f398363812115611d20c0c803802c78ed65974.tar.bz2
libbu++-e1f398363812115611d20c0c803802c78ed65974.tar.xz
libbu++-e1f398363812115611d20c0c803802c78ed65974.zip
Fixed the connection manager to not suck with the new connection read api.
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 {