Re: How to get Apache to use simultaneous connections to my fcgi app?
joe-QzMH92Wc/[email protected]
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
On Aug 20, 2007, at 17:51 UTC, David Birnbaum wrote: > If you are using the library yourself, you need to handle > forking/threading. Apache is going to block on the connect() back to > your application. So, you have do to the accept() into a child or > thread, so the parent can pick up the next one. You decide how many > children to run at once. I'm not using the library; I'm just implementing the protocol directly. My TCP socket listens for an incoming connection, and as soon as it gets one, it passes it off to another socket and resumes listening on the original port. It's all threaded, so there is no problem servicing multiple connections. I've used this same technique in other places, so I know that this code is perfectly capable of accepting any number of incoming connections. But it's possible that I'm still missing something. It still seems suspicious to me that I never get a FCGI_GET_VALUES record, and so never have the opportunity to tell mod_fastcgi that I can accept more than one connection. Or do you think that's not related? Thanks, - Joe -- Joe Strout -- joe-QzMH92Wc/[email protected] Strout Custom Solutions, LLC ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/