You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2004/10/28 04:46:34 UTC
cvs commit: ws-axis/c/src/transport/axis2 Axis2Transport.cpp
samisa 2004/10/27 19:46:34
Modified: c/src/transport/axis2 Axis2Transport.cpp
Log:
Fixed the problem of the buffer being over written when the HTTP header is
not read in one go.
Jira AXISCPP-230
Revision Changes Path
1.6 +5 -2 ws-axis/c/src/transport/axis2/Axis2Transport.cpp
Index: Axis2Transport.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/transport/axis2/Axis2Transport.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Axis2Transport.cpp 15 Oct 2004 03:35:19 -0000 1.5
+++ Axis2Transport.cpp 28 Oct 2004 02:46:33 -0000 1.6
@@ -174,8 +174,11 @@
{
do
{
- if (m_strReceived.find ("\r\n\r\n") == std::string::npos)
- m_Channel >> m_strReceived; // Assume non blocking here
+ if (m_strReceived.find ("\r\n\r\n") == std::string::npos) {
+ std::string strTempReceived = "";
+ m_Channel >> strTempReceived; // Assume non blocking here
+ m_strReceived += strTempReceived;
+ }
}
while (m_strReceived.find ("\r\n\r\n") == std::string::npos);
//now we have found the end of headers