Threaded fastcgi-server - truncated output

"Vladimir V. Pavluk" <vladvic_r-JGs/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel,gmane.spam.detected
Message-ID <[email protected]>
Hello!

I've wrote the threaded fastcgi application, which is generally works fine. 
However, I've found a problem: when the size of output becomes more than some 
threshold (in my case - about 8.7 kb), the rest output is truncated.
It seemed to me that the stream does not have time to be flushed before the 
FCGX_Finish_r is called, because when I insert sleep(1) line, the problem is 
gone.
I've found an example of threaded fastcgi server in dev kit distribution, and 
found the 'sleep(2)' line just after output.
So, I have following questions:
Is this delay really needed for allowing streams to be flushed?
How can we do it without sleep delays (if it is possible at all) - I don't 
really want to insert sleeps after output as it looks as a dirty hack :( ?..

Sincerely, Vladimir V. Pavluk.
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.