Commit c83062d1 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos
Browse files

io-http2: reset the data source buffer size on eof

Otherwise on next source data callback we would still be trying to send
data.
parent 985c0ac2
......@@ -589,9 +589,10 @@ on_data_read (GInputStream *source,
if (read < 0) {
g_byte_array_set_size (data->data_source_buffer, 0);
data->data_source_error = g_steal_pointer (&error);
} else if (read == 0)
} else if (read == 0) {
g_byte_array_set_size (data->data_source_buffer, 0);
data->data_source_eof = TRUE;
else
} else
g_byte_array_set_size (data->data_source_buffer, read);
h2_debug (data->io, data, "[SEND_BODY] Resuming send");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment