> 2010/9/29 Roberto De Ioris <[email protected]>:
>>
>>> I have good news: yesterday I deployed to production the fix to close
>>> all file descriptors when spawning subprocesses from workers, and
>>> since then there is no single empty response!
>>>
>>> It seems like uwsgi is reusing non-worker processes...
>>
>> Damn ! Damn ! and Damn ! sorry for my stupidity, you have suggested me
>> the solutions weeks ago and i do not pay attention to it :(
>>
>> It is normal that if a process takes a file descriptor (and do not close
>> it) the other peer will maintain the connection open...
>
> Is there a way to detect this?  To avoid nightmares...
> --
>

Applying CLOSE_ON_EXEC flag on every new socket should be enough.
I will make a patch soon. Flup does the same thing by default but i will
make it configurable as fcntl() on every request can hurt a bit.


-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to