[webkit-gtk] Connection timeout
Gavin Lambert
gavinl at compacsort.com
Mon Feb 23 21:16:46 PST 2015
Hi,
I'm currently using libwebkitgtk1.0 2.4.7.
I was wondering if there is a way to set the connection establishment (but
not idle) timeout.
In particular, in my environment I know that if connection to a webserver
(meaning the low-level TCP handshaking) does not complete within only a
couple of seconds then the server is offline. However once that connection
is established the server may sit on it for several minutes before providing
an HTTP response (long polling).
At present, the long polling part is working reasonably well, but when the
server is offline the WebKit-based client will still spend a full minute
waiting for a newly-created XMLHTTPRequest to connect. Is there some way to
reduce this without reducing the time it's allowed to sit idle once
connected?
The closest thing that I could find in the docs was SoupSession's timeout
property, but this says that it affects the reply idle time as well. It
also seems confused about what its default value is.
Regards,
Gavin Lambert
More information about the webkit-gtk
mailing list