summaryrefslogtreecommitdiff
path: root/vos/source
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-01-20 13:20:36 +0000
committerOliver Bolte <obo@openoffice.org>2006-01-20 13:20:36 +0000
commitcebe0b2667fd2db21053f59347461fe2f52a8380 (patch)
tree8ce7807e2bc830a3e4871c86e3929c71ff55215d /vos/source
parent199f87358f3baa5410fcc0ab7e3924ccbd498ee4 (diff)
INTEGRATION: CWS bserver12 (1.13.8); FILE MERGED
2006/01/16 15:09:34 kz 1.13.8.1: #130261# bug when reading/writing with timeout
Diffstat (limited to 'vos/source')
-rw-r--r--vos/source/socket.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vos/source/socket.cxx b/vos/source/socket.cxx
index a895b706906d..922510384c11 100644
--- a/vos/source/socket.cxx
+++ b/vos/source/socket.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: socket.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 09:10:07 $
+ * last change: $Author: obo $ $Date: 2006-01-20 14:20:36 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -1448,7 +1448,7 @@ sal_Int32 OStreamSocket::read(void* pBuffer, sal_uInt32 n) const
Ptr += RetVal;
/* wait for next available data or timeout */
- if (m_pRecvTimeout && ! isRecvReady(m_pRecvTimeout))
+ if ( BytesToRead > 0 && m_pRecvTimeout && ! isRecvReady(m_pRecvTimeout))
break;
}
@@ -1496,7 +1496,7 @@ sal_Int32 OStreamSocket::write(const void* pBuffer, sal_uInt32 n)
Ptr += RetVal;
/* wait till new data is available or timeout occures */
- if (m_pSendTimeout && ! isSendReady(m_pSendTimeout))
+ if ( BytesToSend > 0 && m_pSendTimeout && ! isSendReady(m_pSendTimeout))
break;
}