Re: FASTCGI and Huge Post Data
Fu Limin <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
PS. I made a mistake by using reply instead of "reply all", now I re-send it :-) Thank you for your quick reply. Jason P Sage wrote: >Generally speaking, the nature of post data is a stream coming in. To my >knowledge, you need to bring it all in first, before you should respond. I >haven't read this anywhere - but I assume it because to me it makes sense - >read the whole request and then return something. > > Yes, that is what I am going to do. >You mentioned returning something huge. If this is some sort of file return, >then I might consider a special approach, one to receive and another to >send, with required communication to the user via html. > >For large or long processing HTML stuff (cuz server cranking on something, >and you don't want to appear to the user as "um... think its going to time >out"... I personally either toss out SOMETHING ... usually a DIV section, >With a please wait or something, followed by little self contained scripts >that modify the DIV... to "Almost done", "4 out of 5 processed" then the >rest of the HTML PAGE clears this div section to nothing, and it usually >means I have a little 1/4 inch of space I can't always reclaim but the user >was never left wondering. > >I guess, depending on what you're doing, the approach might be more >important than the FastCGI "issue" you are having. > > In the beginning, I really thought it was a "bug". But then I found out it was because I left much post data not processed. Then I am not sure what kind of "issue" it is and if it has been observed before, so I post it in the mailing list to check :-). Thank you for the hints. Limin >Jason P Sage > >----------Original Below----------------- >Subject: [FASTCGI] Is this a bug for fastcgi C library? > >Hi, >These days I spent some time to write a fastcgi module for a scripting >language using the fastcgi C library. I observe a problem in the library >when there is a large amount of post data for the request, that is, for >example, if there is more than 100KB post data which are not processed >by the fastcgi application, it becomes impossible to send back to the >server a large mount of data (500KB), in this case, the fastcgi >application seems to be blocked somewhere. But if the fastcgi just send >a small amount data, this problem do not exist, and also if the just a >small amount of post data not processed before sending many data, this >problem will not happen. Though one can alway avoid this problem by >processing all the post data before sending a large amount of data, it >would be nice if this problem will be removed. >Regards, > >Limin > >___________________________________ >fastcgi-developers mailing list >http://fastcgi.com/fastcgi-developers/ > > > > > ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/