Skip to content

Commit

Permalink
lib-http: client: Added more debug logging about the submission of de…
Browse files Browse the repository at this point in the history
…layed requests.
  • Loading branch information
stephanbosch authored and sirainen committed Jun 19, 2016
1 parent cf757d6 commit 4889576
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib-http/http-client-queue.c
Expand Up @@ -743,6 +743,12 @@ void http_client_queue_submit_request(struct http_client_queue *queue,

if (timeval_cmp_margin(&req->release_time,
&ioloop_timeval, TIMEOUT_CMP_MARGIN_USECS) > 0) {
http_client_queue_debug(queue,
"Delayed request %s%s submitted (time remaining: %d msecs)",
http_client_request_label(req),
(req->urgent ? " (urgent)" : ""),
timeval_diff_msecs(&req->release_time, &ioloop_timeval));

(void)array_bsearch_insert_pos(&queue->delayed_requests,
&req, http_client_queue_delayed_cmp, &insert_idx);
array_insert(&queue->delayed_requests, insert_idx, &req, 1);
Expand Down

0 comments on commit 4889576

Please sign in to comment.