mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix sending a cached file using AIO
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user