mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user