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
This commit is contained in:
psychon
2008-02-29 06:44:22 +00:00
parent 46f6651ba1
commit 331f8b1e3a

View File

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