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
This commit is contained in:
Przemysław Czerpak
2014-04-03 12:17:40 +02:00
parent bf2a912c0e
commit a5c9a7e68e
2 changed files with 6 additions and 1 deletions

View File

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

View File

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