python 3.x - Stop uwsgi performing harakiri (seriously) -


i've been trying track down problem uwsgi uwsgi process kills itself.

the oh-so-helpful log files say...

f*ck !!! must kill myself (pid: 9984 app_id: 0)... 

a little googling led me this line in source code...

void harakiri() {     uwsgi_log("\nf*ck !!! must kill myself (pid: %d app_id: %d)...\n", uwsgi.mypid, uwsgi.wsgi_req->app_id);     //some other stuff     exit(0); } 

whether dies or not varies seems (from googling) tied how long request takes. in instance, request streaming dynamically generated pdf. generation happens in background once it's complete, new request comes in retrieve it. pdf can potentially quite large (worst-case, 50-60mb) - depending on connection - speed explains why requests might reach timeout threshold.

how can configure uwsgi either never time out or have extremely high timeouts? app being used on private networks , i'd rather slow , succeeded died.

harakiri voluntary enable --harakiri, default there no such feature. check configuration it.

another possibility running without master process (you should have warning it) , set alarm() without defining signal handler sigalrm


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -