[libsoup] soup-http-input-stream: unpause the SoupMessage before cancelling it.
- From: Sergio Villar Senin <svillar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup-http-input-stream: unpause the SoupMessage before cancelling it.
- Date: Fri, 28 Oct 2011 14:32:59 +0000 (UTC)
commit 2ec9af5efab3410e40dc84ca37264b58878727e3
Author: Sergio Villar Senin <svillar igalia com>
Date: Thu Oct 27 15:00:31 2011 +0200
soup-http-input-stream: unpause the SoupMessage before cancelling it.
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 | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-http-input-stream.c b/libsoup/soup-http-input-stream.c
index a4c8c2a..66a3896 100644
--- a/libsoup/soup-http-input-stream.c
+++ b/libsoup/soup-http-input-stream.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]