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/libwww LibWWWTransport.cpp
Date Thu, 05 Aug 2004 08:25:43 GMT
samisa      2004/08/05 01:25:43

  Modified:    c/src/transport/libwww LibWWWTransport.cpp
  Log:
  Fixed windows and 100-continue related problems.
  
  Revision  Changes    Path
  1.8       +16 -10    ws-axis/c/src/transport/libwww/LibWWWTransport.cpp
  
  Index: LibWWWTransport.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/libwww/LibWWWTransport.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- LibWWWTransport.cpp	5 Aug 2004 03:19:52 -0000	1.7
  +++ LibWWWTransport.cpp	5 Aug 2004 08:25:43 -0000	1.8
  @@ -35,6 +35,10 @@
   int terminate_handler (HTRequest * request, HTResponse * response,
                                  void * param, int status)
   {
  +#ifdef HT_EXT_CONTINUE    
  +#else
  +    HTEventList_stopLoop();
  +#endif
       return status;
   }
   
  @@ -131,8 +135,8 @@
           }
           strcat(m_pcData, pcSendBuffer);
           //Samisa: Callback to free memeory has been removed
  -        //Q: who should relese memory in this case?
  -//        m_pReleaseBufferCallback(pcSendBuffer, pBufferid);
  +        //Q: who should relese memory in this case? A: Serializer
  +        //m_pReleaseBufferCallback(pcSendBuffer, pBufferid);
       }
        
       return TRANSPORT_IN_PROGRESS;
  @@ -329,7 +333,8 @@
       dst = HTAnchor_findAddress(m_pcEndpointUri);
       src = HTTmpAnchor(NULL);
       HTAnchor_setDocument(src, m_pcData);
  -    HTAnchor_setFormat(src, WWW_SOURCE);
  +    //HTAnchor_setFormat(src, WWW_SOURCE);
  +    HTAnchor_setFormat(src, HTAtom_for ("text/xml"));
       HTRequest_setOutputFormat(m_pRequest, HTAtom_for ("text/xml"));
       HTAnchor_setLength(src, strlen(m_pcData));
   
  @@ -408,21 +413,22 @@
   {
       if(inited) //make sure the lib is initialized only once per client
           return;
  -    //Create a new non-premptive client
  -    //HTProfile_newNoCacheClient("AxisCpp", "1.3");
  -    //Create a new non-premptive client (in this case no event loop is required)
  +#ifdef HT_EXT_CONTINUE    
  +    //Create a new premptive client (in this case no event loop is required)
       HTProfile_newPreemptiveClient("AxisCpp", "1.3");
  +    HTMethod_setExtensionMethod(METHOD_EXT_0, "POST", NO);
  +#else
  +    //Create a new non-premptive client
  +    HTProfile_newNoCacheClient("AxisCpp", "1.3");
  +#endif
       inited = 1;
       //Disable interactive mode, could be useful when debugging
       HTAlert_setInteractive(NO);
       // Add our own filter to do the clean up after response received
       HTNet_addAfter(terminate_handler, NULL, NULL, HT_ALL, HT_FILTER_LAST);
       //How long we are going to wait for a response
  -    HTHost_setEventTimeout(5000);
  +    HTHost_setEventTimeout(50000);
   
  -#ifdef HT_EXT_CONTINUE    
  -    HTMethod_setExtensionMethod(METHOD_EXT_0, "POST", NO);
  -#endif
   }
   }
   
  
  
  

Mime
View raw message