]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-http: Add ioloop and lock wait information to timeout messages.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 24 Oct 2016 10:08:47 +0000 (13:08 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 24 Oct 2016 11:26:19 +0000 (14:26 +0300)
commit50ce4f6ed21fdb2b2b3bde5f41ccac825418b13f
treeb69603b64be0074f589acfd256f0fde7249bdd26
parent1bea846fbfbf7a5cf78e33f11ced03b86b2349a4
lib-http: Add ioloop and lock wait information to timeout messages.

It'll now log for example:
9007 Request timed out (Request sent 7.087 secs ago, 0.076 in other ioloops, 7.012 in locks, connected 7.087 secs ago)

Which points out that the problem wasn't really with the HTTP, but with
locking. This likely should be fixed in some way also in lib-http so that
it gives a bit of extra time for reading the request, but that's a separate
fix.
src/lib-http/http-client-connection.c
src/lib-http/http-client-private.h
src/lib-http/http-client-request.c