From a5e9f1c751a5628cd3d3f7a616f95efce259c2b6 Mon Sep 17 00:00:00 2001 From: psychon Date: Thu, 6 Dec 2007 13:05:50 +0000 Subject: [PATCH] Update to latest Csocket This saves me 70% of CPU time on a DCC transfer over localhost. With this patch ZNC officially sucks less (tm) :) git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@899 726aef4b-f618-498e-8847-2d620e286838 --- Csocket.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Csocket.cpp b/Csocket.cpp index a23161d6..d9ef4552 100644 --- a/Csocket.cpp +++ b/Csocket.cpp @@ -28,7 +28,7 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * -* $Revision: 1.61 $ +* $Revision: 1.62 $ */ #include "Csocket.h" @@ -1412,7 +1412,6 @@ bool Csock::Write( const CS_STRING & sData ) int Csock::Read( char *data, int len ) { int bytes = 0; - memset( (char *)data, '\0', len ); if ( ( IsReadPaused() ) && ( SslIsEstablished() ) ) return( READ_EAGAIN ); // allow the handshake to complete first