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 2006/02/24 01:31:14 UTC

svn commit: r380283 - in /webservices/axis2/trunk/c: include/axis2_http_transport.h modules/util/hash.c test/xml/soap/test_soap.c

Author: samisa
Date: Thu Feb 23 16:31:13 2006
New Revision: 380283

URL: http://svn.apache.org/viewcvs?rev=380283&view=rev
Log:
Fixed a leak in hash and set the default timeout to 30

Modified:
    webservices/axis2/trunk/c/include/axis2_http_transport.h
    webservices/axis2/trunk/c/modules/util/hash.c
    webservices/axis2/trunk/c/test/xml/soap/test_soap.c

Modified: webservices/axis2/trunk/c/include/axis2_http_transport.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_http_transport.h?rev=380283&r1=380282&r2=380283&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_transport.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_transport.h Thu Feb 23 16:31:13 2006
@@ -330,7 +330,7 @@
     /**
      * DEFAULT_SO_TIMEOUT
      */
-    #define AXIS2_HTTP_DEFAULT_SO_TIMEOUT 60000
+    #define AXIS2_HTTP_DEFAULT_SO_TIMEOUT 30000
     
     /**
      * DEFAULT_CONNECTION_TIMEOUT

Modified: webservices/axis2/trunk/c/modules/util/hash.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/hash.c?rev=380283&r1=380282&r2=380283&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/hash.c (original)
+++ webservices/axis2/trunk/c/modules/util/hash.c Thu Feb 23 16:31:13 2006
@@ -126,7 +126,7 @@
     {
         if (hi->index > hi->ht->max)
         {
-          /*  AXIS2_FREE ((*environment)->allocator, hi); */
+            AXIS2_FREE ((*environment)->allocator, hi); 
             return NULL;
         }
 

Modified: webservices/axis2/trunk/c/test/xml/soap/test_soap.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/xml/soap/test_soap.c?rev=380283&r1=380282&r2=380283&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/soap/test_soap.c (original)
+++ webservices/axis2/trunk/c/test/xml/soap/test_soap.c Thu Feb 23 16:31:13 2006
@@ -200,6 +200,9 @@
     buffer = AXIS2_XML_WRITER_GET_XML(xml_writer, env);         
     printf("%s \n",  buffer); 
 
+    free(buffer);
+    buffer = NULL;
+
     AXIS2_SOAP_ENVELOPE_FREE(soap_envelope, env);
     AXIS2_FREE((*env)->allocator, buffer);
     AXIS2_OM_OUTPUT_FREE(om_output, env);
@@ -258,6 +261,5 @@
     create_soap_fault(&env);
     axis2_env_free(env); 
     axis2_allocator_free(allocator);
-    getchar();
     return 0;        
 }