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 na...@apache.org on 2009/10/03 11:31:58 UTC

svn commit: r821283 - in /webservices/axis2/trunk/c/src/core: clientapi/svc_client.c receivers/raw_xml_in_out_msg_recv.c transport/http/common/http_worker.c

Author: nandika
Date: Sat Oct  3 09:31:57 2009
New Revision: 821283

URL: http://svn.apache.org/viewvc?rev=821283&view=rev
Log:
crash problem fixed for a invalid rest request, typos in comments corrected.

Modified:
    webservices/axis2/trunk/c/src/core/clientapi/svc_client.c
    webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c
    webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c

Modified: webservices/axis2/trunk/c/src/core/clientapi/svc_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/clientapi/svc_client.c?rev=821283&r1=821282&r2=821283&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/svc_client.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/svc_client.c Sat Oct  3 09:31:57 2009
@@ -859,7 +859,7 @@
         }
         axis2_listener_manager_make_sure_started(svc_client->listener_manager, env,
             transport_in_protocol, svc_client->conf_ctx);
-        /* Following sleep is required to ensure the listner is ready to receive response.
+        /* Following sleep is required to ensure the listener is ready to receive response.
          If it is missing, the response gets lost. - Samisa */
         AXIS2_USLEEP(1);
 

Modified: webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c?rev=821283&r1=821282&r2=821283&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c (original)
+++ webservices/axis2/trunk/c/src/core/receivers/raw_xml_in_out_msg_recv.c Sat Oct  3 09:31:57 2009
@@ -364,7 +364,7 @@
     {
         if(!axutil_strcmp(err_msg, "No Error"))
         {
-            fault_reason_str = "An error has occured, but could not determine exact details";
+            fault_reason_str = "An error has occurred, but could not determine exact details";
         }
         else
         {
@@ -373,7 +373,7 @@
     }
     else
     {
-        fault_reason_str = "An error has occured, but could not determine exact details";
+        fault_reason_str = "An error has occurred, but could not determine exact details";
     }
 
     soap_fault = axiom_soap_fault_create_default_fault(env, out_body, fault_value_str,

Modified: webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c?rev=821283&r1=821282&r2=821283&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c Sat Oct  3 09:31:57 2009
@@ -692,7 +692,6 @@
                 response, 0);
 
             axis2_simple_http_svr_conn_write_response(svr_conn, env, response);
-            axis2_http_simple_response_free(response, env);
             request_handled = AXIS2_TRUE;
             status = AXIS2_TRUE;
         }
@@ -717,7 +716,7 @@
             AXIS2_FREE(env->allocator, url_ext_form);
         if(AXIS2_FAILURE == status && (is_put || axis2_msg_ctx_get_doing_rest(msg_ctx, env)))
         {
-            /* Failure Occure while processing REST */
+            /* Failure Occur while processing REST */
 
             axis2_http_header_t *cont_len = NULL;
             axis2_http_header_t *cont_type = NULL;
@@ -902,7 +901,6 @@
             axis2_http_worker_set_response_headers(http_worker, env, svr_conn, simple_request,
                 response, 0);
             axis2_simple_http_svr_conn_write_response(svr_conn, env, response);
-            axis2_http_simple_response_free(response, env);
             request_handled = AXIS2_TRUE;
             status = AXIS2_TRUE;
         }
@@ -1040,7 +1038,6 @@
         axis2_http_worker_set_response_headers(http_worker, env, svr_conn,
             simple_request, response, 0);
         axis2_simple_http_svr_conn_write_response(svr_conn, env, response);
-        axis2_http_simple_response_free(response, env);
         request_handled = AXIS2_TRUE;
         status = AXIS2_TRUE;
     }
@@ -1198,7 +1195,6 @@
                             axis2_http_worker_set_response_headers(http_worker, env, svr_conn,
                                 simple_request, response, 0);
                             axis2_simple_http_svr_conn_write_response(svr_conn, env, response);
-                            axis2_http_simple_response_free(response, env);
                             request_handled = AXIS2_TRUE;
                             status = AXIS2_TRUE;
                             response_written = AXIS2_TRUE;
@@ -1471,7 +1467,7 @@
                     in_msg_ctx = msg_ctx_map[AXIS2_WSDL_MESSAGE_LABEL_IN];
                     if (in_msg_ctx)
                     {
-                        /* TODO: Add neccessary handling */
+                        /* TODO: Add neccssary handling */
                     }
                     if (out_msg_ctx)
                     {
@@ -1682,7 +1678,7 @@
                         axis2_http_simple_response_set_header(response, env,
                             transfer_enc_header);
 
-                        /* In the chunking case content-lenght is zero */
+                        /* In the chunking case content-length is zero */
                         axis2_http_worker_set_response_headers(http_worker, env, svr_conn,
                             simple_request, response,
                             0);