projects
/
platform
/
upstream
/
libsoup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9edf277
)
soup-http-input-stream: unpause the SoupMessage before cancelling it.
author
Sergio Villar Senin
<svillar@igalia.com>
Thu, 27 Oct 2011 13:00:31 +0000
(15:00 +0200)
committer
Sergio 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
patch
|
blob
|
history
diff --git
a/libsoup/soup-http-input-stream.c
b/libsoup/soup-http-input-stream.c
index
a4c8c2a
..
66a3896
100644
(file)
--- 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);