You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2006/12/07 09:58:53 UTC
svn commit: r483382 - in /webservices/axis2/trunk/c:
modules/core/transport/http/http_worker.c
modules/core/transport/http/sender/http_client.c util/include/axis2_error.h
Author: dinesh
Date: Thu Dec 7 00:58:52 2006
New Revision: 483382
URL: http://svn.apache.org/viewvc?view=rev&rev=483382
Log:
client will return -1 when sever shutdown while client waiting for response
Modified:
webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c
webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c
webservices/axis2/trunk/c/util/include/axis2_error.h
Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c?view=diff&rev=483382&r1=483381&r2=483382
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c Thu Dec 7 00:58:52 2006
@@ -1,4 +1,4 @@
-/*
+ /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c?view=diff&rev=483382&r1=483381&r2=483382
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/http_client.c Thu Dec 7 00:58:52 2006
@@ -527,6 +527,14 @@
AXIS2_FAILURE);
return -1;
}
+ else if (read == 0)
+ {
+ AXIS2_ERROR_SET(env->error,
+ AXIS2_ERROR_RESPONSE_SERVER_SHUTDOWN,
+ AXIS2_FAILURE);
+ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Response error, Server Shutdown");
+ return -1;
+ }
status_line = axis2_http_status_line_create(env, str_status_line);
if (NULL == status_line)
{
Modified: webservices/axis2/trunk/c/util/include/axis2_error.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_error.h?view=diff&rev=483382&r1=483381&r2=483382
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_error.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_error.h Thu Dec 7 00:58:52 2006
@@ -192,7 +192,7 @@
AXIS2_ERROR_INVALID_PHASE_FIRST_HANDLER,
/** Invalid last handler for phase */
AXIS2_ERROR_INVALID_PHASE_LAST_HANDLER,
- /** Invalid engine config state */
+ /** Invalid engine config state */
AXIS2_ERROR_INVALID_STATE_CONF,
/** Message context processing a fault already */
AXIS2_ERROR_INVALID_STATE_PROCESSING_FAULT_ALREADY,
@@ -282,6 +282,8 @@
AXIS2_ERROR_RESPONSE_CONTENT_TYPE_MISSING,
/** Response timed out */
AXIS2_ERROR_RESPONSE_TIMED_OUT,
+ /** Response timed out */
+ AXIS2_ERROR_RESPONSE_SERVER_SHUTDOWN,
/** SOAP envelope or SOAP body NULL */
AXIS2_ERROR_SOAP_ENVELOPE_OR_SOAP_BODY_NULL,
/* Error occured in SSL engine */
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org