diff options
author | Uros Majstorovic <majstor@majstor.org> | 2017-07-19 15:19:54 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2017-07-19 15:19:54 +0200 |
commit | 50a392349a2e06ea5ff08e35cfb2558a1c97b993 (patch) | |
tree | 5139b68b7b27e290e4ae88ea4e5b127b724af55a /code/proxy | |
parent | 0967b98ce307a80a7576d3da0c939a757f4e6154 (diff) |
ring buffer fixes
Diffstat (limited to 'code/proxy')
-rw-r--r-- | code/proxy/proxy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/code/proxy/proxy.c b/code/proxy/proxy.c index 0f90c20..ba21ca1 100644 --- a/code/proxy/proxy.c +++ b/code/proxy/proxy.c @@ -389,6 +389,7 @@ int ecp_proxy_init(ECPContext *ctx) { rv = ecp_conn_handler_init(&handler_b); if (rv) return rv; + handler_b.conn_create = proxyb_create; handler_b.conn_destroy = proxyb_destroy; handler_b.conn_open = proxyb_open; @@ -402,7 +403,7 @@ int ecp_proxy_init(ECPContext *ctx) { ctx->pr.pack_raw = proxy_pack_raw; #ifdef ECP_WITH_PTHREAD - pthread_mutex_init(&key_next_mutex, NULL); + pthread_mutex_init(&key_perma_mutex, NULL); pthread_mutex_init(&key_next_mutex, NULL); #endif |