Handling multiple simultaneous TCP connections
"Keith Martin" <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Sorry if this is a question that should be able to be answered from the docs - just started using fast_cgi and I'm having a bit of "can't see the wood for the trees" moment (I've read so much docs and mailing list questions that I've managed to confuse myself...) Basically what I am trying to achieve is a fast-cgi handler that listens to a given TCP/IP socket, and as soon as a connection is made if forks a child to handle that connection (accepting and dealing with that fcgi request etc), whilst the parent immediately goes back to waiting for a new connection. This is required because the requests may take some time to process (e.g. 10 or more seconds) but needs to be able to deal with lots of requests at any one time, without waiting for one to finish before serving the next. Perhaps I'm just missing something obvious here, but I just can't seem to figure out a way of doing this. In case anyone needs to know, I'm developing in C on a Solaris platform, using fcgiapp Any pointers (or even example code!) would be greatly appreciated. Thanks in advance, Keith. ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/