diff --git a/ChangeLog.txt b/ChangeLog.txt index e64204ad2f..b30596cf46 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,10 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2014-04-03 12:17 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * contrib/hbnetio/netiosrv.c + ! added missing condition to interrupt broken client connections + 2014-04-02 22:52 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * contrib/hbnetio/netiosrv.c ! fixed very bad bug in one of recent modifications which completely diff --git a/contrib/hbnetio/netiosrv.c b/contrib/hbnetio/netiosrv.c index 75d1ccbf56..d30a48cdef 100644 --- a/contrib/hbnetio/netiosrv.c +++ b/contrib/hbnetio/netiosrv.c @@ -372,7 +372,8 @@ static long s_srvRecvAll( PHB_CONSRV conn, void * buffer, long len ) l = hb_socketRecv( conn->sd, ptr + lRead, len - lRead, 0, 1000 ); if( l <= 0 ) { - if( hb_socketGetError() != HB_SOCKET_ERR_TIMEOUT || + if( l == 0 || + hb_socketGetError() != HB_SOCKET_ERR_TIMEOUT || hb_vmRequestQuery() != 0 || ( end_timer != 0 && end_timer <= hb_dateMilliSeconds() ) ) break;