tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r391652 - /tomcat/connectors/trunk/jni/native/src/sslnetwork.c
Date Wed, 05 Apr 2006 15:54:35 GMT
Author: mturk
Date: Wed Apr  5 08:54:34 2006
New Revision: 391652

URL: http://svn.apache.org/viewcvs?rev=391652&view=rev
Log:
Add missing shutdown unclean flag if send
times out due to the broken receiver (client).

Modified:
    tomcat/connectors/trunk/jni/native/src/sslnetwork.c

Modified: tomcat/connectors/trunk/jni/native/src/sslnetwork.c
URL: http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jni/native/src/sslnetwork.c?rev=391652&r1=391651&r2=391652&view=diff
==============================================================================
--- tomcat/connectors/trunk/jni/native/src/sslnetwork.c (original)
+++ tomcat/connectors/trunk/jni/native/src/sslnetwork.c Wed Apr  5 08:54:34 2006
@@ -406,12 +406,13 @@
             switch (i) {
                 case SSL_ERROR_ZERO_RETURN:
                     *len = 0;
-                        con->shutdown_type = SSL_SHUTDOWN_TYPE_STANDARD;
+                    con->shutdown_type = SSL_SHUTDOWN_TYPE_STANDARD;
                     return APR_EOF;
                 break;
                 case SSL_ERROR_WANT_READ:
                 case SSL_ERROR_WANT_WRITE:
                     if ((rv = wait_for_io_or_timeout(con, i)) != APR_SUCCESS) {
+                        con->shutdown_type = SSL_SHUTDOWN_TYPE_UNCLEAN;
                         return rv;
                     }
                 break;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message