soup-message-io: only retry on I/O error if the connection has been used
authorDan Winship <danw@gnome.org>
Sat, 22 May 2010 20:42:01 +0000 (16:42 -0400)
committerDan Winship <danw@gnome.org>
Sat, 22 May 2010 20:42:01 +0000 (16:42 -0400)
commit2442fc7785487b12d1d674bb04c7f889b6d3b8ca
treee65b4711d510273eb3a5a5075ef7e395d590bf01
parenta87e5833024a21a4e2aa845e039121377e921738
soup-message-io: only retry on I/O error if the connection has been used

An I/O failure on a previously-used connection may indicate that the
server timed out the connection; an I/O error on a fresh connection
should not. Fixes infinite retries in certain edge cases.

Part of https://bugzilla.gnome.org/show_bug.cgi?id=615535
libsoup/soup-connection.c
libsoup/soup-connection.h
libsoup/soup-message-io.c