]> 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)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 12 Jan 2018 20:17:35 +0000 (21:17 +0100)
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 42c3bb0e284795255e453293b0a94f92c19c1af8..6a9bb9548c2aa61b212b255af63b31c56d9f41c6 100644 (file)
@@ -653,7 +653,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);
                                        }
                                }
                        }