rest - Fixing broken pipe error in uWSGI with Python -
while hitting rest resource (my_resource
) in python, uwsgi server throwing following error in log:
sigpipe: writing closed pipe/socket/fd (probably client disconnected) on request my_resource (ip <my_ip>) !!! uwsgi_response_write_body_do(): broken pipe [core/writer.c line 164] ioerror: write error
it seems related timeout (the client disconnected before request finish processing).
what sort of timeout , how can fixed?
it depends on frontend server. example nginx has uwsgi_read_timeout parameter. (generally set 60 seconds). uwsgi http router --http-timeout default 60 seconds , on. talking rest api quite doubtful requires more 60 seconds generate response, sure not have wrong response header triggering connection close frontend webserver ?
Comments
Post a Comment