SoupSession: break infinite loops
authorDan Winship <danw@gnome.org>
Wed, 6 Mar 2013 17:58:29 +0000 (12:58 -0500)
committerDan Winship <danw@gnome.org>
Wed, 6 Mar 2013 19:47:26 +0000 (14:47 -0500)
commitef359ad7565e3b46691582358fd07f1148c933f7
tree18a1d67df7733411058faaa6149da6881f291851
parent230a42c9e53380e2fb82306bed174618ef5a41e0
SoupSession: break infinite loops

Every year or two some bug comes up that makes libsoup retry a request
infinitely. (Also, apps can do this on their own by not paying
attention to the "retrying" flag in SoupSession::authenticate.) Move
the "too many redirects" code and rework it to handle all possible
cases of "message gets resent a suspicious number of times".
libsoup/soup-message-queue.h
libsoup/soup-session.c
tests/auth-test.c