From d2b55560009d2d2d33748706f043030b9159d161 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 20 Sep 2006 00:53:40 +0000 Subject: Updated the connection class to send all outgoing data when there is some. Later this should be fixed and another function should be added. --- src/connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connection.cpp b/src/connection.cpp index 3b90329..d66ff97 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -330,7 +330,8 @@ bool Connection::clearInput() bool Connection::writeOutput() { - int nBytes = TEMP_FAILURE_RETRY( write( nSocket, xOutputBuf.getData(), min( 2048, xOutputBuf.getLength() ) ) ); + //int nBytes = TEMP_FAILURE_RETRY( write( nSocket, xOutputBuf.getData(), min( 2048, xOutputBuf.getLength() ) ) ); + int nBytes = TEMP_FAILURE_RETRY( write( nSocket, xOutputBuf.getData(), xOutputBuf.getLength() ) ); if( nBytes < 0 ) { perror("writeOutput"); -- cgit v1.2.3