2015-04-09 00:20 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbnetio/netiosrv.c
* contrib/hbtcpio/tcpio.c
* call hb_socketShutdown() before hb_socketClose() to force output
buffer flush in systems like MS-Windows.
This commit is contained in:
@@ -10,6 +10,12 @@
|
||||
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
|
||||
*/
|
||||
|
||||
2015-04-09 00:20 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* contrib/hbnetio/netiosrv.c
|
||||
* contrib/hbtcpio/tcpio.c
|
||||
* call hb_socketShutdown() before hb_socketClose() to force output
|
||||
buffer flush in systems like MS-Windows.
|
||||
|
||||
2015-04-01 14:59 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* src/debug/dbgentry.c
|
||||
! fixed typo in my previous commit for AltD() function detection
|
||||
|
||||
@@ -238,6 +238,7 @@ static void s_consrv_disconnect( PHB_CONSRV conn )
|
||||
{
|
||||
if( conn->sd != HB_NO_SOCKET )
|
||||
{
|
||||
hb_socketShutdown( conn->sd, HB_SOCKET_SHUT_RDWR );
|
||||
hb_socketClose( conn->sd );
|
||||
conn->sd = HB_NO_SOCKET;
|
||||
}
|
||||
@@ -267,7 +268,10 @@ static void s_consrv_close( PHB_CONSRV conn )
|
||||
hb_itemRelease( conn->mutex );
|
||||
|
||||
if( conn->sd != HB_NO_SOCKET )
|
||||
{
|
||||
hb_socketShutdown( conn->sd, HB_SOCKET_SHUT_RDWR );
|
||||
hb_socketClose( conn->sd );
|
||||
}
|
||||
|
||||
if( conn->zstream )
|
||||
hb_znetClose( conn->zstream );
|
||||
|
||||
@@ -176,6 +176,7 @@ static PHB_FILE s_fileOpen( PHB_FILE_FUNCS pFuncs, const char * pszName,
|
||||
|
||||
static void s_fileClose( PHB_FILE pFile )
|
||||
{
|
||||
hb_socketShutdown( pFile->sd, HB_SOCKET_SHUT_RDWR );
|
||||
hb_socketClose( pFile->sd );
|
||||
hb_fsSetError( hb_socketGetError() );
|
||||
hb_xfree( pFile );
|
||||
|
||||
Reference in New Issue
Block a user