GNOME Bugzilla – Bug 778428
souphttpsrc: Original connection does not cleared if the uri is redirected
Last modified: 2017-02-22 14:15:56 UTC
Bug #777222 changed redirection handling on souphttpsrc, that is, souphttpsrc explicitly requests again for the redirected uri. (i.e., does not use libsoup's automatic redirection) That approach seems to cause regression for adaptivedemux use-case.
Created attachment 345440 [details] [review] souphttpsrc: Extract redirection uri on libsoup's restarted callback Let libsoup handle redirection automatically. And then, to figure out redirection uri, extract it on "restarted" callback which will be fired before soup_session_send() is returned.
The patch looks good and works fine, there's a slight difference from before: before the number of redirects was limited to the value of the 'retries' property, while now the limit is hardcoded in libsoup to 20. I think this is better now, the 'retries' property should only concern errors.
Attachment 345440 [details] pushed as 804f238 - souphttpsrc: Extract redirection uri on libsoup's restarted callback