Skip to content

Commit

Permalink
lib-http: Hook lib-http event to connection event
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and villesavolainen committed Nov 13, 2018
1 parent a18527c commit 14d0377
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-http/http-client-connection.c
Expand Up @@ -1620,6 +1620,7 @@ http_client_connection_tunnel_response(const struct http_response *response,

http_client_request_start_tunnel(req, &tunnel);

conn->conn.event_parent = conn->event;
connection_init_from_streams(cctx->conn_list, &conn->conn,
name, tunnel.input, tunnel.output);
connection_switch_ioloop_to(&conn->conn, cctx->ioloop);
Expand Down Expand Up @@ -1701,6 +1702,7 @@ http_client_connection_create(struct http_client_peer *peer)
conn->label = i_strdup_printf("%s [%d]",
http_client_peer_shared_label(pshared), conn->id);
conn->event = event_create(peer->client->event);
conn->conn.event_parent = conn->event;
event_set_append_log_prefix(conn->event,
t_strdup_printf("conn %s: ", conn->label));

Expand Down

0 comments on commit 14d0377

Please sign in to comment.