Re: Apache Module
Re: Apache Module
- Subject: Re: Apache Module
- From: Jens Alfke <email@hidden>
- Date: Mon, 30 Nov 2009 09:09:39 -0800
On Nov 30, 2009, at 8:48 AM, Mr. Gecko wrote:
> I decided to write it like PHP CGI, it's working fine for me, and I'm able to get all the information I need from the server by NSFileHandle and NSProcessInfo.
Cool. If you find that performance is a problem, you should look into using SCGI. This will allow your process to keep running and handle multiple requests (one at a time) instead of being quit and re-launched for each request. SCGI is pretty easy to implement — you basically just run a loop that reads the request headers and info from stdin, handles the request and writes back to stdout, then goes back and waits for another request. (I wrote an implementation a few years ago but I don't have access to the source anymore.)
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden