GNOME Bugzilla – Bug 682804
libsoup needs a per soup-message timeout
Last modified: 2012-09-04 18:51:48 UTC
In order to implement XHR2's timeout functionality in WebKit, the underlying HTTP library should support a timeout per sent-out HTTP request. Currently, according to Dan, this is not available as a feature of libsoup.
so, note that this would essentially boil down to g_timeout_add() + soup_session_cancel_message(), and there's no reason webkit couldn't just do that itself instead...
Thanks for your feedback - yes, we can do that in ResourceHandleSoup, you think it makes more sense to do it on top of libsoup, and not inside?
I guess it boils down to whether or not other apps are likely to need per-message as opposed to per-session timeouts. And that doesn't seem like a very common use case. So maybe it's better to just do it in WebKit.
Alright, I have a patch to implement that in ResourceHandleSoup in WebKit.