Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 2536:a6d6d762c554
small optimization: " == NGX_ERROR" > " != NGX_OK"
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 24 Feb 2009 10:42:23 +0000 |
parents | 4bc8ea10d62b |
children | 3a8a53c0c42f |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Tue Feb 24 08:32:02 2009 +0000 +++ b/src/http/ngx_http_upstream.c Tue Feb 24 10:42:23 2009 +0000 @@ -860,7 +860,7 @@ if (ngx_ssl_create_connection(u->conf->ssl, c, NGX_SSL_BUFFER|NGX_SSL_CLIENT) - == NGX_ERROR) + != NGX_OK) { ngx_http_upstream_finalize_request(r, u, NGX_HTTP_INTERNAL_SERVER_ERROR);