Fix handling of connections that time out while IN_USE
authorDan Winship <danw@gnome.org>
Sun, 13 Nov 2011 20:02:34 +0000 (15:02 -0500)
committerDan Winship <danw@gnome.org>
Sun, 13 Nov 2011 20:06:17 +0000 (15:06 -0500)
commitd67c7ce1cf1329aee98eec413b56d57715abf9b7
treebedba0689919163915a5e7d1061fa5f3695afa4b
parent2a03bc205b096bb9ecff1ea9dacd155cb16da1fb
Fix handling of connections that time out while IN_USE

To avoid looping, we only resend a request on
unexpected-connection-close if it was sent on a connection that has
previously been succesfully used. But we were only setting the
"successfully" used flag after a message *completed*, so if a message
just got restarted, and the connection got closed before the second
sending, then the connection was seen as having never been used, and
so the message wouldn't get re-sent.

Fix this by marking the connection as having been used if a message it
is sending gets restarted.

https://bugzilla.gnome.org/show_bug.cgi?id=660057
libsoup/soup-connection.c