io_tls: remove tls_handshake_* logic
@@ -329,14 +329,6 @@ int net_io_tls_handshake(void *_u_conn, void *_th)
struct flb_thread *th = _th;
-#ifdef FLB_HAVE_TLS
- time_t now = time(NULL);
- if (u->tls->handshake_timeout > 0) {
- u_conn->tls_handshake_start = now;
- u_conn->tls_handshake_timeout = now + u->tls->handshake_timeout;
- }
-#endif
-
session = flb_tls_session_new(u->tls->context);
if (!session) {
flb_error("[io_tls] could not create TLS session for %s:%i",
@@ -398,11 +390,6 @@ int net_io_tls_handshake(void *_u_conn, void *_th)
}
flb_trace("[io_tls] connection OK");
-#ifdef FLB_HAVE_TLS
- u_conn->tls_handshake_start = -1;
- u_conn->tls_handshake_timeout = -1;
-#endif
-
return 0;
error:
