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
This commit is contained in:
psychon
2007-12-06 13:05:50 +00:00
parent 425fd72c41
commit a5e9f1c751

View File

@@ -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