ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From susan...@apache.org
Subject cvs commit: ws-axis/c/src/server/apache ApacheTransport.cpp ApacheTransport.h
Date Tue, 03 Aug 2004 08:39:58 GMT
susantha    2004/08/03 01:39:58

  Modified:    c/src/server/apache ApacheTransport.cpp ApacheTransport.h
  Log:
  Corrected the problem in Apache 1.3 module after the patch to avoid buffering in the Serializer
  
  Revision  Changes    Path
  1.4       +7 -0      ws-axis/c/src/server/apache/ApacheTransport.cpp
  
  Index: ApacheTransport.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/server/apache/ApacheTransport.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ApacheTransport.cpp	24 May 2004 10:11:17 -0000	1.3
  +++ ApacheTransport.cpp	3 Aug 2004 08:39:58 -0000	1.4
  @@ -36,6 +36,7 @@
   
   ApacheTransport::ApacheTransport(void* pContext)
   {
  +    m_bHeadersSent = false;
   	m_pContext = pContext;
   #ifndef CHUNCKED_DATA_SUPPORTED
       m_pBuffers = new BufferInfo[NO_OF_SERIALIZE_BUFFERS];
  @@ -50,6 +51,12 @@
   
   AXIS_TRANSPORT_STATUS ApacheTransport::sendBytes(const char* pcSendBuffer, const void*
pBufferId)
   {
  +    if (!m_bHeadersSent)
  +    {
  +        ap_send_http_header ((request_rec*)m_pContext);
  +        m_bHeadersSent = true;
  +    }
  +
   #ifndef CHUNCKED_DATA_SUPPORTED
       int index;
   #endif
  
  
  
  1.6       +1 -0      ws-axis/c/src/server/apache/ApacheTransport.h
  
  Index: ApacheTransport.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/server/apache/ApacheTransport.h,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ApacheTransport.h	20 Jul 2004 03:48:12 -0000	1.5
  +++ ApacheTransport.h	3 Aug 2004 08:39:58 -0000	1.6
  @@ -81,6 +81,7 @@
   
   private:
   	void* m_pContext;
  +    bool m_bHeadersSent;
   #ifndef CHUNCKED_DATA_SUPPORTED
       BufferInfo* m_pBuffers;
   #endif
  
  
  

Mime
View raw message