From 35ceb6dabe4f784e39fccc827e8db38cdfd3fd30 Mon Sep 17 00:00:00 2001 From: jan Date: Sat, 23 Sep 2006 07:04:02 +0000 Subject: fixed connections falling back to non-ssl when keep-alive + ssl was used git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1334 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/connections.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/connections.c b/src/connections.c index 9612129f..4e5a4fb6 100644 --- a/src/connections.c +++ b/src/connections.c @@ -1342,6 +1342,12 @@ int connection_state_machine(server *srv, connection *con) { con->loops_per_request = 0; connection_set_state(srv, con, CON_STATE_READ); + + /* patch con->conf.is_ssl if the connection is a ssl-socket already */ + +#ifdef USE_OPENSSL + con->conf.is_ssl = srv_sock->is_ssl; +#endif break; case CON_STATE_REQUEST_END: /* transient */ -- cgit v1.2.1