soup-http-input-stream: unpause the SoupMessage before cancelling it.
authorSergio Villar Senin <svillar@igalia.com>
Thu, 27 Oct 2011 13:00:31 +0000 (15:00 +0200)
committerSergio Villar Senin <svillar@igalia.com>
Fri, 28 Oct 2011 07:00:05 +0000 (09:00 +0200)
If we try to close a SoupHttpInputStream before the SoupMessage is finished
and the SoupMessage is in paused state, it will remain paused forever.
Unpause the SoupMessage before actually cancelling it.

https://bugzilla.gnome.org/show_bug.cgi?id=662847

libsoup/soup-http-input-stream.c

index a4c8c2a..66a3896 100644 (file)
@@ -478,6 +478,7 @@ soup_http_input_stream_close (GInputStream  *stream,
 {
        SoupHTTPInputStreamPrivate *priv = SOUP_HTTP_INPUT_STREAM_GET_PRIVATE (stream);
 
+       soup_session_unpause_message (priv->session, priv->msg);
        if (!priv->finished)
                soup_session_cancel_message (priv->session, priv->msg, SOUP_STATUS_CANCELLED);