]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: queue: Update the correct timout while dropping a request from the delay...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 12 Jan 2018 20:03:41 +0000 (21:03 +0100)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Wed, 7 Feb 2018 13:27:58 +0000 (15:27 +0200)
The absolute request timeout rather than the delay timeout was updated for the
removal of the request from the delay queue.

src/lib-http/http-client-queue.c

index 5e1e4d28de5e1c7caf33a0d9b7ca86bfc67ac530..923881bef11f6e4e341fc7e3fef81fa344171cef 100644 (file)
@@ -667,7 +667,7 @@ http_client_queue_drop_request(struct http_client_queue *queue,
                                        timeout_remove(&queue->to_delayed);
                                        if (count > 1) {
                                                i_assert(reqs[1]->release_time.tv_sec > 0);
-                                               http_client_queue_set_request_timer(queue, &reqs[1]->release_time);
+                                               http_client_queue_set_delay_timer(queue, reqs[1]->release_time);
                                        }
                                }
                        }