[uWSGI] HARAKIRI in threads and ugreen in uwsgi 2.1

Roberto De Ioris roberto at unbit.it
Mon Apr 13 19:35:13 CEST 2015


> Roberto mentioned that HARAKIRI isn't reliable right now in the 2.0.x
> branch (for some concurrency models) but that it's fixed in the 2.1
> version.  I understand that it'll accurately track the time each
> thread/coroutine/whatever takes and then only HARAKIRI if one actually
> takes too long.  However, does it still kill the whole worker process
> or does it only kill the long running thread/coroutine/etc?
> _______________________________________________
>


Hi, preemptively killing threads is not possible on posix, as well as
coroutine (but this is normal as they are generally a hack).

So, yes, the whole worker is killed, as this is the only way to interrupt
the specific task.


-- 
Roberto De Ioris
http://unbit.com


More information about the uWSGI mailing list