fix sending a cached file using AIO

This commit is contained in:
Igor Sysoev 2009-08-28 11:22:27 +00:00
parent aa4200b551
commit a39d4e1aee

View File

@ -439,11 +439,13 @@ ngx_http_upstream_init_request(ngx_http_request_t *r)
rc = ngx_http_upstream_cache(r, u);
if (rc == NGX_AGAIN) {
if (rc == NGX_BUSY) {
r->write_event_handler = ngx_http_upstream_init_request;
return;
}
r->write_event_handler = ngx_http_request_empty_handler;
if (rc == NGX_DONE) {
return;
}
@ -704,7 +706,7 @@ ngx_http_upstream_cache(ngx_http_request_t *r, ngx_http_upstream_t *u)
case NGX_AGAIN:
return NGX_AGAIN;
return NGX_BUSY;
case NGX_ERROR: