dovecot-2.2: lib-http: Added http_client_get_pending_request_cou...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 27 18:04:17 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/185dfd05b57a
changeset: 16564:185dfd05b57a
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 27 18:03:38 2013 +0300
description:
lib-http: Added http_client_get_pending_request_count()

diffstat:

 src/lib-http/http-client.c |  5 +++++
 src/lib-http/http-client.h |  2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)

diffs (26 lines):

diff -r c2c09416d8a4 -r 185dfd05b57a src/lib-http/http-client.c
--- a/src/lib-http/http-client.c	Wed Jun 26 22:23:20 2013 +0300
+++ b/src/lib-http/http-client.c	Thu Jun 27 18:03:38 2013 +0300
@@ -189,6 +189,11 @@
 	io_loop_destroy(&client->ioloop);
 }
 
+unsigned int http_client_get_pending_request_count(struct http_client *client)
+{
+	return client->pending_requests;
+}
+
 int http_client_init_ssl_ctx(struct http_client *client, const char **error_r)
 {
 	struct ssl_iostream_settings ssl_set;
diff -r c2c09416d8a4 -r 185dfd05b57a src/lib-http/http-client.h
--- a/src/lib-http/http-client.h	Wed Jun 26 22:23:20 2013 +0300
+++ b/src/lib-http/http-client.h	Thu Jun 27 18:03:38 2013 +0300
@@ -121,5 +121,7 @@
 
 /* blocks until all currently submitted requests are handled */
 void http_client_wait(struct http_client *client);
+/* Returns number of pending HTTP requests. */
+unsigned int http_client_get_pending_request_count(struct http_client *client);
 
 #endif


More information about the dovecot-cvs mailing list