Author: rhuijben
Date: Thu Oct 15 17:00:52 2015
New Revision: 1708849

URL: http://svn.apache.org/viewvc?rev=1708849&view=rev
Log:
* outgoing.c
  (reset_connection): Properly reset some state variables.

Modified:
    serf/trunk/outgoing.c

Modified: serf/trunk/outgoing.c
URL: 
http://svn.apache.org/viewvc/serf/trunk/outgoing.c?rev=1708849&r1=1708848&r2=1708849&view=diff
==============================================================================
--- serf/trunk/outgoing.c (original)
+++ serf/trunk/outgoing.c Thu Oct 15 17:00:52 2015
@@ -715,6 +715,12 @@ static apr_status_t reset_connection(ser
     conn->ctx->dirty_pollset = 1;
     conn->state = SERF_CONN_INIT;
 
+    conn->hit_eof = 0;
+    conn->connect_time = 0;
+    conn->latency = -1;
+    conn->stop_writing = 0;
+    /* conn->pipelining */
+
     conn->status = APR_SUCCESS;
 
     /* Let our context know that we've 'reset' the socket already. */


Reply via email to