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/axis3 HTTPTransport.cpp
Date Fri, 11 Mar 2005 04:33:16 GMT
samisa      2005/03/10 20:33:16

  Modified:    c/src/transport/axis3 HTTPTransport.cpp
  Log:
  AXISCPP-518 Patch applied
  
  Revision  Changes    Path
  1.22      +15 -0     ws-axis/c/src/transport/axis3/HTTPTransport.cpp
  
  Index: HTTPTransport.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis3/HTTPTransport.cpp,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- HTTPTransport.cpp	8 Mar 2005 12:59:39 -0000	1.21
  +++ HTTPTransport.cpp	11 Mar 2005 04:33:16 -0000	1.22
  @@ -395,6 +395,7 @@
       {
   		try
   		{
  +			m_pszRxBuffer [0] = '\0';
   			*m_pActiveChannel >> m_pszRxBuffer;
   			m_strReceived = m_pszRxBuffer;
   
  @@ -415,6 +416,7 @@
   					{
   						if (m_strReceived.find( "\r\n\r\n") == std::string::npos)
   						{
  +							m_pszRxBuffer [0] = '\0';
   							*m_pActiveChannel >> m_pszRxBuffer;
   
   // If data has been received, then add the data to the received message buffer
  @@ -443,6 +445,7 @@
   						{
   							if( m_strReceived.find( "\r\n\r\n") == std::string::npos)
   							{
  +								m_pszRxBuffer [0] = '\0';
   								*m_pActiveChannel >> m_pszRxBuffer;
   
   // If data has been received, then add the data to the received message buffer
  @@ -504,6 +507,7 @@
   			// Samisa: We found Continue. Keep on reading and processing headers
   			// till we get a HTTP code other than 100
   			// Here it is assumed that the whole of the request is already sent
  +						m_pszRxBuffer [0] = '\0';
   						*m_pActiveChannel >> m_pszRxBuffer;
   						m_strReceived = m_pszRxBuffer;
   					}
  @@ -525,10 +529,14 @@
   	    // make sure we have a message with some content
   		    if( m_strReceived.length () == 0)
   			{
  +				m_pszRxBuffer [0] = '\0';
   				*m_pActiveChannel >> m_pszRxBuffer;
   				m_strReceived = m_pszRxBuffer;
   			}
   
  +		if( m_strReceived.length () > 0) 
  +		{
  +
   		    if( m_bChunked && m_iContentLength < 1)	// Read first chunk
   		    {
   		/*
  @@ -560,6 +568,7 @@
   				{
   					do
   					{
  +						m_pszRxBuffer [0] = '\0';
   						*m_pActiveChannel >> m_pszRxBuffer;
   						m_strReceived = m_pszRxBuffer;
   						endOfChunkData = m_strReceived.find( "\r\n");
  @@ -627,6 +636,7 @@
   		    // Make sure that we have the found the end of previous chunk
   					while( endOfChunkData == std::string::npos)
   					{
  +						m_pszRxBuffer [0] = '\0';
   						*m_pActiveChannel >> m_pszRxBuffer;
   						m_strReceived += m_pszRxBuffer;
   						endOfChunkData = m_strReceived.find( "\r\n");
  @@ -639,6 +649,7 @@
   		    // Make sure that we have the starting line of next chunk
   					while( endOfChunkData == std::string::npos)
   					{
  +						m_pszRxBuffer [0] = '\0';
   						*m_pActiveChannel >> m_pszRxBuffer;
   						m_strReceived += m_pszRxBuffer;
   						endOfChunkData = m_strReceived.find( "\r\n");
  @@ -703,6 +714,7 @@
   					processRootMimeBody();
   				}
   			}
  +		}
   
   		    m_pcReceived = m_strReceived.c_str();
   
  @@ -1291,6 +1303,7 @@
   		{
   			if( m_strReceived.find( "\r\n\r\n") == std::string::npos)
   			{
  +				m_pszRxBuffer [0] = '\0';
   				*m_pActiveChannel >> m_pszRxBuffer;
   				m_strReceived += m_pszRxBuffer;
   			}
  @@ -1396,6 +1409,7 @@
   
   void HTTPTransport::getAttachment( char * pStrAttachment, int * pIntSize, int intAttachmentId)
   {
  +	m_pszRxBuffer [0] = '\0';
   	*m_pActiveChannel >> m_pszRxBuffer;
       m_strMimeReceived += m_pszRxBuffer;
   
  @@ -1403,6 +1417,7 @@
       {
   		if( m_strMimeReceived.find( "\r\n\r\n") == std::string::npos)
   		{
  +			m_pszRxBuffer [0] = '\0';
   			*m_pActiveChannel >> m_pszRxBuffer;
   		    m_strMimeReceived += m_pszRxBuffer;
   		}
  
  
  

Mime
View raw message