ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/transport/axis2 Axis2Transport.cpp
Date Thu, 28 Oct 2004 02:46:34 GMT
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
  
  
  

Mime
View raw message