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/11/02 11:52:30 UTC

cvs commit: ws-axis/c/src/transport/axis2 Axis2Transport.cpp

samisa      2004/11/02 02:52:30

  Modified:    c/src/transport/axis2 Tag: Release1-3-cand2-bugfixes-branch
                        Axis2Transport.cpp
  Log:
  Fixed the bug of overwriting the current buffer in case of repeated reads to
  read till end of HTTP header
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.5.2.1   +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.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- Axis2Transport.cpp	15 Oct 2004 03:35:19 -0000	1.5
  +++ Axis2Transport.cpp	2 Nov 2004 10:52:30 -0000	1.5.2.1
  @@ -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