I've sent a message to the list before about this problem, but I wasn't able to 
pinpoint the cause. Now I believe I got it.

I have a Django app served with FastCGI to Cherokee, using threaded mode in 
order to avoid some database issues. My daemon line is like this:

        python /storage/test/colibri/manage.py runfcgi protocol=fcgi 
socket=/tmp/test-fcgi.sock pidfile=/tmp/test-fcgi.pid method=threaded debug=true

I have keep-alive and chunked encoding disabled. If I request a form page with 
an upload input, and right after I try to upload a file (any file, doesn't 
matter the file size), it works fine. But, if I request the form page, have the 
browser sit idle for sometime, and after that I try to initiate the upload, 
Cherokee stalls on file uploading.

This happens regardless of my keep-alive configuration, but always happens if 
I'm using threaded mode. With prefork, I don't see the issue.

Now, I don't believe this bug is related to Django itself, neither I should 
have this strange behaviour with threaded mode. I'm considering it's something 
wrong on Cherokee, because the behaviour looks like a keep-alive problem.

Unfortunately, I'm unable to debug more than this. I request if someone can 
please take a look at this issue and try to reproduce it with a Django app 
(1.1) deployed the same way as me + Cherokee 0.99.44. Running Django with 
prefork got it's share of problems already, so it's preferred to use it in 
threaded mode. Now I can't use either, because either I got database problems, 
or I got those Cherokee file upload problems.

Thanks!
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to