mirror of
https://github.com/znc/znc.git
synced 2026-05-05 04:52:31 +02:00
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:
@@ -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 ) )
|
||||
|
||||
Reference in New Issue
Block a user