You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by sc...@apache.org on 2015/02/28 02:38:51 UTC
svn commit: r1662877 -
/xerces/c/branches/xerces-3.1/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp
Author: scantor
Date: Sat Feb 28 01:38:51 2015
New Revision: 1662877
URL: http://svn.apache.org/r1662877
Log:
XERCESC-1968
Modified:
xerces/c/branches/xerces-3.1/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp
Modified: xerces/c/branches/xerces-3.1/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp
URL: http://svn.apache.org/viewvc/xerces/c/branches/xerces-3.1/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp?rev=1662877&r1=1662876&r2=1662877&view=diff
==============================================================================
--- xerces/c/branches/xerces-3.1/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp (original)
+++ xerces/c/branches/xerces-3.1/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp Sat Feb 28 01:38:51 2015
@@ -222,6 +222,11 @@ int BinHTTPInputStreamCommon::sendReques
ThrowXMLwithMemMgr1(NetAccessorException, XMLExcepts::NetAcc_ReadSocket, url.getURLText(), fMemoryManager);
}
+ // connection closed
+ if (ret == 0) {
+ break;
+ }
+
fBuffer.append(tmpBuf, ret);
fBufferPos = strstr(fBuffer.getRawBuffer(), CRLF2X);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org