Mercurial > hg > nginx-mail
comparison src/mail/ngx_mail_auth_http_module.c @ 459:dac47e9ef0d5 NGINX_0_7_27
nginx 0.7.27
*) Feature: the "try_files" directive.
*) Feature: variables support in the "fastcgi_pass" directive.
*) Feature: now the $geo variable may get an address from a
variable.
Thanks to Andrei Nigmatulin.
*) Feature: now a location's modifier may be used without space before
name.
*) Feature: the $upstream_response_length variable.
*) Bugfix: now a "add_header" directive does not add an empty value.
*) Bugfix: if zero length static file was requested, then nginx just
closed connection; the bug had appeared in 0.7.25.
*) Bugfix: a MOVE method could not move file in non-existent directory.
*) Bugfix: a segmentation fault occurred in worker process, if no one
named location was defined in server, but some one was used in an
error_page directive.
Thanks to Sergey Bochenkov.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 15 Dec 2008 00:00:00 +0300 |
parents | ad0a34a8efa6 |
children | d67e93e97b4a 392c16f2d858 |
comparison
equal
deleted
inserted
replaced
458:3b8e9d1bc9bb | 459:dac47e9ef0d5 |
---|---|
266 | 266 |
267 if (wev->timer_set) { | 267 if (wev->timer_set) { |
268 ngx_del_timer(wev); | 268 ngx_del_timer(wev); |
269 } | 269 } |
270 | 270 |
271 if (ngx_handle_write_event(wev, 0) == NGX_ERROR) { | 271 if (ngx_handle_write_event(wev, 0) != NGX_OK) { |
272 ngx_close_connection(c); | 272 ngx_close_connection(c); |
273 ngx_destroy_pool(ctx->pool); | 273 ngx_destroy_pool(ctx->pool); |
274 ngx_mail_session_internal_server_error(s); | 274 ngx_mail_session_internal_server_error(s); |
275 } | 275 } |
276 | 276 |
892 if (rev->ready) { | 892 if (rev->ready) { |
893 rev->handler(rev); | 893 rev->handler(rev); |
894 return; | 894 return; |
895 } | 895 } |
896 | 896 |
897 if (ngx_handle_read_event(rev, 0) == NGX_ERROR) { | 897 if (ngx_handle_read_event(rev, 0) != NGX_OK) { |
898 ngx_mail_close_connection(c); | 898 ngx_mail_close_connection(c); |
899 } | 899 } |
900 | 900 |
901 return; | 901 return; |
902 } | 902 } |
903 | 903 |
904 if (rev->active) { | 904 if (rev->active) { |
905 if (ngx_handle_read_event(rev, 0) == NGX_ERROR) { | 905 if (ngx_handle_read_event(rev, 0) != NGX_OK) { |
906 ngx_mail_close_connection(c); | 906 ngx_mail_close_connection(c); |
907 } | 907 } |
908 } | 908 } |
909 } | 909 } |
910 | 910 |
1100 ngx_mail_auth_http_ctx_t *ctx; | 1100 ngx_mail_auth_http_ctx_t *ctx; |
1101 | 1101 |
1102 ngx_log_debug0(NGX_LOG_DEBUG_MAIL, rev->log, 0, | 1102 ngx_log_debug0(NGX_LOG_DEBUG_MAIL, rev->log, 0, |
1103 "mail auth http block read"); | 1103 "mail auth http block read"); |
1104 | 1104 |
1105 if (ngx_handle_read_event(rev, 0) == NGX_ERROR) { | 1105 if (ngx_handle_read_event(rev, 0) != NGX_OK) { |
1106 c = rev->data; | 1106 c = rev->data; |
1107 s = c->data; | 1107 s = c->data; |
1108 | 1108 |
1109 ctx = ngx_mail_get_module_ctx(s, ngx_mail_auth_http_module); | 1109 ctx = ngx_mail_get_module_ctx(s, ngx_mail_auth_http_module); |
1110 | 1110 |