aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanjaap Bos <janjaap.bos@capitar.com>2019-04-16 20:22:51 +0200
committerGarrett D'Amore <garrett@damore.org>2019-04-24 16:40:33 -0700
commit7d0ba783f7d58ef579396a8eded73a86393c043d (patch)
tree1869b87c54779c9ae0f50cb80ddce2a949ea7898
parent1d61214d9e2c0ba274d1ae7465a4d6baa63cac1c (diff)
downloadnng-7d0ba783f7d58ef579396a8eded73a86393c043d.tar.gz
nng-7d0ba783f7d58ef579396a8eded73a86393c043d.tar.bz2
nng-7d0ba783f7d58ef579396a8eded73a86393c043d.zip
set txn->client in nni_http_transact
Otherwise connections are not closed in reaper.
-rw-r--r--src/supplemental/http/http_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supplemental/http/http_client.c b/src/supplemental/http/http_client.c
index c35dcaa8..50300846 100644
--- a/src/supplemental/http/http_client.c
+++ b/src/supplemental/http/http_client.c
@@ -465,7 +465,7 @@ nni_http_transact(nni_http_client *client, nni_http_req *req,
}
nni_aio_list_init(&txn->aios);
- txn->client = NULL;
+ txn->client = client;
txn->conn = NULL;
txn->req = req;
txn->res = res;