"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/stats/event-exporter-transport-http-post.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

event-exporter-transport-http-post.c  (dovecot-2.3.16):event-exporter-transport-http-post.c  (dovecot-2.3.17)
skipping to change at line 55 skipping to change at line 55
void event_export_transport_http_post(const struct exporter *exporter, void event_export_transport_http_post(const struct exporter *exporter,
const buffer_t *buf) const buffer_t *buf)
{ {
struct http_client_request *req; struct http_client_request *req;
if (exporter_http_client == NULL) { if (exporter_http_client == NULL) {
const struct master_service_ssl_settings *master_ssl_set = const struct master_service_ssl_settings *master_ssl_set =
master_service_ssl_settings_get(master_service); master_service_ssl_settings_get(master_service);
struct ssl_iostream_settings ssl_set; struct ssl_iostream_settings ssl_set;
i_zero(&ssl_set);
struct http_client_settings set = {
.dns_client_socket_path = "dns-client",
};
if (master_ssl_set != NULL) { if (master_ssl_set != NULL) {
master_service_ssl_settings_to_iostream_set(master_ssl_se master_service_ssl_client_settings_to_iostream_set(
t, master_ssl_set, pool_datastack_create(),
pool_datastack_create(),
MASTER_SERVICE_SSL_SETTINGS_TYPE_CLIENT,
&ssl_set); &ssl_set);
set.ssl = &ssl_set;
} }
const struct http_client_settings set = {
.dns_client_socket_path = "dns-client",
.ssl = &ssl_set,
};
exporter_http_client = http_client_init(&set); exporter_http_client = http_client_init(&set);
} }
req = http_client_request_url_str(exporter_http_client, "POST", req = http_client_request_url_str(exporter_http_client, "POST",
exporter->transport_args, exporter->transport_args,
response_fxn, NULL); response_fxn, NULL);
http_client_request_add_header(req, "Content-Type", exporter->format_mime _type); http_client_request_add_header(req, "Content-Type", exporter->format_mime _type);
http_client_request_set_payload_data(req, buf->data, buf->used); http_client_request_set_payload_data(req, buf->data, buf->used);
http_client_request_set_timeout_msecs(req, exporter->transport_timeout); http_client_request_set_timeout_msecs(req, exporter->transport_timeout);
 End of changes. 4 change blocks. 
9 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)