]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
http-client: Changed struct http_client_host_port into a struct http_client_queue...
authorStephan Bosch <stephan@rename-it.nl>
Fri, 22 Nov 2013 20:07:41 +0000 (22:07 +0200)
committerStephan Bosch <stephan@rename-it.nl>
Fri, 22 Nov 2013 20:07:41 +0000 (22:07 +0200)
commitde96afeeaa5242cffe89f1966457e935806b5746
tree6cb71d5149e29cfcc4ee6ad91837d700cb479381
parentb367011da1a2ba3e9113dfbc601aaa4b6b04317d
http-client: Changed struct http_client_host_port into a struct http_client_queue object.
Peer and request objects now reference the queue object directly rather
than the host object. This way, there is no need to find the matching
host:port in the host anymore. This makes the queueing structure more
intuitive and more efficient. This is a first step towards support for
connecting to HTTP services through unix sockets or directing requests at
specific hosts (so not from the URL). This patch also fixes a potential
timeout leak (to_connect) in http_client_host_port (now http_client_queue)
and makes sure it is moved during switch_ioloop(). Finally it updates the
structure comment at the top of http-client.c.
src/lib-http/Makefile.am
src/lib-http/http-client-host.c
src/lib-http/http-client-peer.c
src/lib-http/http-client-private.h
src/lib-http/http-client-queue.c [new file with mode: 0644]
src/lib-http/http-client-request.c
src/lib-http/http-client.c