After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 682804 - libsoup needs a per soup-message timeout
libsoup needs a per soup-message timeout
Status: RESOLVED WONTFIX
Product: libsoup
Classification: Core
Component: HTTP Transport
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2012-08-27 14:41 UTC by Dominik Röttsches
Modified: 2012-09-04 18:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dominik Röttsches 2012-08-27 14:41:07 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.
Comment 1 Dan Winship 2012-08-28 13:12:24 UTC
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...
Comment 2 Dominik Röttsches 2012-08-28 13:26:06 UTC
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?
Comment 3 Dan Winship 2012-08-30 12:27:00 UTC
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.
Comment 4 Dominik Röttsches 2012-09-04 18:51:48 UTC
Alright, I have a patch to implement that in ResourceHandleSoup in WebKit.