From 331f8b1e3aa9e6343bae9df6096be35afcb48b50 Mon Sep 17 00:00:00 2001 From: psychon Date: Fri, 29 Feb 2008 06:44:22 +0000 Subject: [PATCH] Update to latest Csocket This fixes a bug where Csocket would do busy reads and writes on sockets it got from listening sockets through accept(). git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@967 726aef4b-f618-498e-8847-2d620e286838 --- Csocket.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Csocket.cpp b/Csocket.cpp index 58deb047..3cc7c791 100644 --- a/Csocket.cpp +++ b/Csocket.cpp @@ -28,7 +28,7 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * -* $Revision: 1.66 $ +* $Revision: 1.67 $ */ #include "Csocket.h" @@ -981,8 +981,8 @@ int Csock::Accept( CS_STRING & sHost, u_short & iRPort ) if ( !m_bBLOCK ) { - // make it none blocking - set_non_blocking( m_iReadSock ); + // make it none blocking + set_non_blocking( iSock ); } if ( !ConnectionFrom( sHost, iRPort ) )