Browse Source

Set con->is_ssl

personal/stbuehler/wip
Stefan Bühler 13 years ago
parent
commit
2484a45c1f
  1. 2
      src/main/connection.c
  2. 1
      src/modules/mod_openssl.c

2
src/main/connection.c

@ -449,6 +449,7 @@ liConnection* li_connection_new(liWorker *wrk) {
ev_io_set(&con->sock_watcher, -1, 0);
con->sock_watcher.data = con;
con->remote_addr_str = g_string_sized_new(INET6_ADDRSTRLEN);
con->is_ssl = FALSE;
con->keep_alive = TRUE;
con->raw_in = li_chunkqueue_new();
@ -497,6 +498,7 @@ void li_connection_reset(liConnection *con) {
li_server_socket_release(con->srv_sock);
con->srv_sock = NULL;
con->srv_sock_data = NULL;
con->is_ssl = FALSE;
ev_io_stop(con->wrk->loop, &con->sock_watcher);
if (con->sock_watcher.fd != -1) {

1
src/modules/mod_openssl.c

@ -61,6 +61,7 @@ static gboolean openssl_con_new(liConnection *con) {
}
con->srv_sock_data = conctx;
con->is_ssl = TRUE;
return TRUE;

Loading…
Cancel
Save