changeset 37:4574b97220fb

Keepalive: unbreak build without --with-http_ssl_module.
author Maxim Dounin <mdounin@mdounin.ru>
date Sun, 04 Sep 2011 01:39:45 +0400
parents 98ebec9459a1
children 7e67b2e897df
files ngx_http_upstream_keepalive_module.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ngx_http_upstream_keepalive_module.c	Sat Sep 03 13:36:12 2011 +0400
+++ b/ngx_http_upstream_keepalive_module.c	Sun Sep 04 01:39:45 2011 +0400
@@ -363,6 +363,8 @@
         goto invalid;
     }
 
+#if (NGX_HTTP_SSL)
+
     /*
      * to cache ssl connections separate pool for peer connection is
      * required, which is only available with patches
@@ -374,6 +376,8 @@
 
 #endif
 
+#endif
+
     if (ngx_handle_read_event(c->read, 0) != NGX_OK) {
         goto invalid;
     }