unbit / uwsgi

uWSGI application server container
http://projects.unbit.it/uwsgi
Other
3.45k stars 687 forks source link

Interrupted system call #1658

Open urban-1 opened 6 years ago

urban-1 commented 6 years ago

Hi all,

I am trying to implement a simple proxy in uwsgi+python (with caching/--cache2). Everything seems to work most of the time, however, from time to time I get:

uwsgi_simple_wait_write_hook()/poll(): Interrupted system call [core/writer.c line 694]
OSError: write error  

I have searched online for increasing timeout options, but from what I can tell is a poll() failure. How can I work around this?

Details:

Thanks in advance

Andreas

unbit commented 6 years ago

The option is --socket-timeout, but what i see is a write error (the peer disconnected) so maybe you just want to suppress them

irisu-inwl commented 2 years ago

I encountered the same issue.

uwsgi_simple_wait_write_hook()/poll(): Interrupted system call [core/writer.c line 704]
OSError: write error

uwsgi.ini

[uwsgi]
chdir = /code/python
wsgi-file = wsgi.py
callable = app
master = true
processes = 2
cheaper = 1
socket = :3031
uid=1000
gid=1000
chmod-socket = 666
pidfile = /code/python/uwsgi.pid
vacuum = true
die-on-term = true
lazy-apps = true
emperor-throttle = 10000
listen = 10000
req-logger = stdio
log-4xx = true
log-5xx = true

buffer-size=131070
max-requests = 6000
max-requests-delta = 300
stats = /code/python/projectname.stats.sock