]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-http: client: Fixed request-specific attempt timeout.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 30 Mar 2017 20:29:13 +0000 (22:29 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 30 Mar 2017 20:48:36 +0000 (23:48 +0300)
commit34c9aed77f78bc50a4eb609049578bd7e76fd4b6
tree0d180ff4e26f61249802773ecce5448654797f12
parent4f67426cdf80531e24353a0ac192310c873786f3
lib-http: client: Fixed request-specific attempt timeout.

This is the timeout applied to a single request attempt. Using http_client_request_set_attempt_timeout_msecs() this can be set for a specific request.
However, this was mostly ignored for requests that weren't in the process of handling response payload.
Instead, the global request_timeout_msecs client setting was used.

Also amended the (currently manual) test suite with tests that demonstated the problem and now verify the fix.
src/lib-http/http-client-connection.c
src/lib-http/test-http-client-errors.c