From cebe0b2667fd2db21053f59347461fe2f52a8380 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Fri, 20 Jan 2006 13:20:36 +0000 Subject: [PATCH] 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 --- vos/source/socket.cxx | 8 ++++---- 1 file 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; }