Skip to content

Commit

Permalink
lib-http: queue: Update the correct timout while dropping a request f…
Browse files Browse the repository at this point in the history
…rom the delay queue.

The absolute request timeout rather than the delay timeout was updated for the
removal of the request from the delay queue.
  • Loading branch information
stephanbosch authored and villesavolainen committed Feb 7, 2018
1 parent 367c3c7 commit b737907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-http/http-client-queue.c
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit b737907

Please sign in to comment.