ctx = i_new(struct _invalid_url, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request_url_str(
http_client, "GET", "imap://example.com/INBOX",
ctx = i_new(struct _host_lookup_failed, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", "test.invalid.",
test_client_connection_refused_timeout, ctx);
}
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", net_ip2addr(&bind_ip),
ctx->to = timeout_add_short(
250, test_client_connection_lost_prematurely_timeout, ctx);
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", net_ip2addr(&bind_ip),
ctx = i_new(struct _connection_timed_out, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", "192.168.0.0", "/connection-timed-out.txt",
{
struct http_client_request *hreq;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", net_ip2addr(&bind_ip),
struct http_client_request *hreq;
struct istream *input;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
input = i_stream_create_from_data("FROP", 4);
input->seekable = FALSE;
struct http_client_request *hreq;
struct istream *input;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
input = i_stream_create_from_data("FROP", 4);
input->seekable = FALSE;
test_expect_errors(1);
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
input = i_stream_create_error_str(EIO, "Moehahahaha!!");
i_stream_set_name(input, "PURE EVIL");
ctx = i_new(struct _retry_payload_ctx, 1);
ctx->count = 1;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
input = i_stream_create_from_data(payload, sizeof(payload)-1);
ctx = i_new(struct _connection_lost_ctx, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
input = i_stream_create_from_data(payload, sizeof(payload)-1);
ctx = i_new(struct _connection_lost_100_ctx, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
input = i_stream_create_from_data(payload, sizeof(payload)-1);
ctx = i_new(struct _connection_lost_sub_ioloop_ctx, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
input = i_stream_create_from_data(payload, sizeof(payload)-1);
ctx = i_new(struct _early_success_ctx, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", net_ip2addr(&bind_ip),
ctx = i_new(struct _bad_response_ctx, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", net_ip2addr(&bind_ip),
ctx = i_new(struct _request_timed_out1_ctx, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", net_ip2addr(&bind_ip),
ctx->to = timeout_add(2000,
test_client_request_timed_out2_timeout, ctx);
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", net_ip2addr(&bind_ip),
ctx = i_new(struct _request_aborted_early_ctx, 1);
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = ctx->req1 = http_client_request(
http_client, "GET", net_ip2addr(&bind_ip),
ctx = i_new(struct _request_failed_blocking_ctx, 1);
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = ctx->req = http_client_request(
http_client, "GET", net_ip2addr(&bind_ip),
ctx = i_new(struct _client_deinit_early_ctx, 1);
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", net_ip2addr(&bind_ip),
ctx = i_new(struct _client_retry_with_delay_ctx, 1);
ctx->time = ioloop_timeval;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
ctx->req = hreq = http_client_request(
http_client, "GET", net_ip2addr(&bind_ip),
ctx = i_new(struct _dns_service_failure, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", "example.com", "/dns-service-failure.txt",
ctx = i_new(struct _dns_timeout, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", "example.com", "/dns-timeout.txt",
ctx = i_new(struct _dns_lookup_failure, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", "example.com", "/dns-lookup-failure.txt",
ctx = i_new(struct _dns_lookup_ttl, 1);
ctx->count = 2;
- ctx->client = http_client = http_client_init(client_set);
+ ctx->client = http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
ctx->client, "GET", "example.com",
ctx = i_new(struct _peer_reuse_failure, 1);
ctx->first = TRUE;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", net_ip2addr(&bind_ip), "/peer-reuse.txt",
ctx = i_new(struct _reconnect_failure_ctx, 1);
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", "example.com", "/reconnect-failure-1.txt",
ctx = i_new(struct _multi_ip_attempts, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", "test1.local", "/multi-ip-attempts.txt",
ctx = i_new(struct _multi_ip_attempts, 1);
ctx->count = 2;
- http_client = http_client_init(client_set);
+ http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
http_client, "GET", "test2.local", "/multi-ip-attempts.txt",
ctx->max = client_set->max_parallel_connections;
ctx->count = client_set->max_parallel_connections;
- ctx->client = http_client = http_client_init(client_set);
+ ctx->client = http_client = http_client_init(client_set, NULL);
for (i = 0; i < ctx->count; i++) {
hreq = http_client_request(
ctx = i_new(struct _idle_hosts, 1);
ctx->count = 2;
- ctx->client = http_client = http_client_init(client_set);
+ ctx->client = http_client = http_client_init(client_set, NULL);
hreq = http_client_request(
ctx->client, "GET", "hosta",