diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 83e7099895..68de35018a 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,13 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-07-28 18:10 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/source/rtl/hbsocket.c + ! fixed stupid typo in S&R - I reverted select() socket sets + in send()/recv() when I was modifying function names. + It can be also an answer why it exploited some problems + with hb_InetRecvLine() in Francesco code. + 2009-07-28 17:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * utils/hbmk2/hbmk2.prg ! Fixed typo in linker option when building shared executable. diff --git a/harbour/source/rtl/hbsocket.c b/harbour/source/rtl/hbsocket.c index bc9ed87763..c09df3b486 100644 --- a/harbour/source/rtl/hbsocket.c +++ b/harbour/source/rtl/hbsocket.c @@ -2076,7 +2076,7 @@ long hb_socketSend( HB_SOCKET sd, const void * data, long len, int flags, HB_LON if( timeout >= 0 ) { - ret = hb_socketSelectRD( sd, timeout ); + ret = hb_socketSelectWR( sd, timeout ); if( ret == 0 ) { hb_socketSetRawError( HB_SOCKET_ERR_TIMEOUT ); @@ -2115,7 +2115,7 @@ long hb_socketSendTo( HB_SOCKET sd, const void * data, long len, int flags, if( timeout >= 0 ) { - ret = hb_socketSelectRD( sd, timeout ); + ret = hb_socketSelectWR( sd, timeout ); if( ret == 0 ) { hb_socketSetRawError( HB_SOCKET_ERR_TIMEOUT ); @@ -2150,7 +2150,7 @@ long hb_socketRecv( HB_SOCKET sd, void * data, long len, int flags, HB_LONG time if( timeout >= 0 ) { - ret = hb_socketSelectWR( sd, timeout ); + ret = hb_socketSelectRD( sd, timeout ); if( ret == 0 ) { hb_socketSetRawError( HB_SOCKET_ERR_TIMEOUT ); @@ -2180,7 +2180,7 @@ long hb_socketRecvFrom( HB_SOCKET sd, void * data, long len, int flags, void ** if( timeout >= 0 ) { - ret = hb_socketSelectWR( sd, timeout ); + ret = hb_socketSelectRD( sd, timeout ); if( ret == 0 ) { hb_socketSetRawError( HB_SOCKET_ERR_TIMEOUT );