mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 11:52:00 +00:00
fix sending a cached file using AIO
This commit is contained in:
parent
aa4200b551
commit
a39d4e1aee
1 changed files with 4 additions and 2 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue