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: [email protected]
For additional commands, e-mail: [email protected]