Avoid infinite loop trying to connect to host when the network is down.
authorDan Winship <danw@gnome.org>
Sat, 22 Aug 2009 13:11:45 +0000 (09:11 -0400)
committerDan Winship <danw@gnome.org>
Sat, 22 Aug 2009 13:32:28 +0000 (09:32 -0400)
commit3d0441b3f0c402447306f53789a47abdc573f8f3
tree2700cde6f696020035a3ecf0af8fa24634a5713c
parent37de8a7526abc11bcb7346884598801589b9dd61
Avoid infinite loop trying to connect to host when the network is down.

If a connection attempt to a host fails, fail all of the messages
queued for that host.

Previously we would leave them in the queue if there was already an
existing connection to the host (hoping that we'd be able to reuse
that connection for the other messages later), but this meant that if
there was a single connection to a host open, with a message running
on it, and at least one additional queued message to the same host,
and then the network went down, libsoup would get stuck in a loop
repeatedly trying and failing to open a second connection (with the
first connection never getting a chance to time out).

http://bugzilla.gnome.org/show_bug.cgi?id=592492
libsoup/soup-session.c