Welcome! Log In Create A New Profile

Advanced

NGX_AGAIN Handling in upload module

Posted by rambabuy 
rambabuy
NGX_AGAIN Handling in upload module
May 17, 2018 08:30AM
HI
I am facing an issue with NGX_AGAIN.
ngx upload module is returning NGX_AGAIN while uploading a file. when nginx
calls again upload module but upload module return NGX_OK id requestbody
exist if( r->requestbody) return NGX_OK and its continue in a loop.

any solution to this?

Thanks
Ram

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279838,279838#msg-279838

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
rambabuy
Re: NGX_AGAIN Handling in upload module
May 17, 2018 08:40AM
HI
I am facing an issue with NGX_AGAIN.
ngx upload module is returning NGX_AGAIN while uploading a file. when nginx
calls again upload module but upload module return NGX_OK if requestbody
exist.

if( r->requestbody) return NGX_OK and its continue in a loop.
any solution to this?


if (!c->read->ready) {
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
ngx_add_timer(c->read, clcf->client_body_timeout);

if (ngx_handle_read_event(c->read, 0) != NGX_OK) {
return NGX_HTTP_INTERNAL_SERVER_ERROR;
}

return NGX_AGAIN;
}
Thanks
Ram

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279838,279839#msg-279839

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login