Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi *,

as there have  been complaints lately that tinderbox server and also
opengrok are unresponsive despite the server not seeing any CPU load
or memory constraints, I thought that maybe the newly activated
check-for-updates is to blame here, and indeed it is:

Capturing the dialog with wireshark shows:

GET /check.php?pkgfmt=rpm HTTP/1.1
Keep-Alive:
Connection: TE, Keep-Alive
TE: trailers
Host: update.libreoffice.org
Accept-Encoding: gzip
Pragma: no-cache
Accept-Language: de
User-Agent: LOdev 3.5 (e40af8c-10029e3-615e522-88673a2-727f724; Linux;
X86_64; BundledLanguages=en-US)

So it uses Keep-Alive, despite only doing one single request and
doesn't close the connection afterwards either.

As the server is configured with keep-alive enabled, and a rather
short amount of simultaneous clients, the requests pile up during busy
periods of the day and the whole thing becomes unresponsive.

As the regular outcome of a check-for-updates is only one single
response from the update server, LO should issue the request either as
plain HTTP/1.0 (that doesn't know keep-alive), or add "Connection:
close" to the header parameters to indicate that the connection should
be closed after the server did send its reply.

Please consider this as stopper for upcomping versions.

(the "Connection" field is fishy anyway, HTTP 1.1 only specifies one
token, and that token being "close" (
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.10 ), so
not sure what "TE" does here - "Keep-Alive:" while mentioned in RFC
2068 also doesn't make any sense without also providing a parameter,
but as keep-alive is not desired here at all...)

ciao
Christian

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.