Author: rhuijben
Date: Tue Nov 17 14:08:41 2015
New Revision: 1714787

URL: http://svn.apache.org/viewvc?rev=1714787&view=rev
Log:
* protocols/http2_stream.c
  (serf_http2__stream_cleanup): Destroy final part of data if necessary.
  (serf_http2__stream_setup_next_request): Note that the request is now in the 
outgoing
    buckets, to avoid destroying twice in pool cleanup/error scenarios.

Modified:
    serf/trunk/protocols/http2_stream.c

Modified: serf/trunk/protocols/http2_stream.c
URL: 
http://svn.apache.org/viewvc/serf/trunk/protocols/http2_stream.c?rev=1714787&r1=1714786&r2=1714787&view=diff
==============================================================================
--- serf/trunk/protocols/http2_stream.c (original)
+++ serf/trunk/protocols/http2_stream.c Tue Nov 17 14:08:41 2015
@@ -85,6 +85,9 @@ serf_http2__stream_cleanup(serf_http2_st
         if (stream->data->response_agg)
             serf_bucket_destroy(stream->data->response_agg);
 
+        if (stream->data->data_tail)
+            serf_bucket_destroy(stream->data->data_tail);
+
         serf_bucket_mem_free(stream->alloc, stream->data);
         stream->data = NULL;
     }
@@ -377,6 +380,7 @@ serf_http2__stream_setup_next_request(se
                                      request->allocator);
 
     stream->status = H2S_OPEN; /* Headers sent. Body to go */
+    request->writing = SERF_WRITING_STARTED;
     return stream_send_data(stream, body);
 }
 


Reply via email to