Module: kamailio
Branch: master
Commit: d3cbfb6aa0e4e3b9232a00e294e1353ee66b32d1
URL:
https://github.com/kamailio/kamailio/commit/d3cbfb6aa0e4e3b9232a00e294e1353…
Author: Camille Oudot <camille.oudot(a)orange.com>
Committer: Camille Oudot <camille.oudot(a)orange.com>
Date: 2015-02-27T11:47:33+01:00
tls: initialize the per-socket lifetime
---
Modified: modules/tls/tls_server.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d3cbfb6aa0e4e3b9232a00e294e1353…
Patch:
https://github.com/kamailio/kamailio/commit/d3cbfb6aa0e4e3b9232a00e294e1353…
---
diff --git a/modules/tls/tls_server.c b/modules/tls/tls_server.c
index 26872c9..1d86140 100644
--- a/modules/tls/tls_server.c
+++ b/modules/tls/tls_server.c
@@ -591,6 +591,7 @@ int tls_h_tcpconn_init(struct tcp_connection *c, int sock)
c->type = PROTO_TLS;
c->rcv.proto = PROTO_TLS;
c->timeout = get_ticks_raw() + cfg_get(tls, tls_cfg, con_lifetime);
+ c->lifetime = cfg_get(tls, tls_cfg, con_lifetime);
c->extra_data = 0;
return 0;
}