• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Apache Module
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Apache Module (From: "Mr. Gecko" <email@hidden>)
 >Re: Apache Module (From: Sherm Pendley <email@hidden>)
 >Re: Apache Module (From: Sherm Pendley <email@hidden>)
 >Re: Apache Module (From: "Mr. Gecko" <email@hidden>)
 >Re: Apache Module (From: Sherm Pendley <email@hidden>)
 >Re: Apache Module (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: AudioToolbox Pitch Bend?
  • Next by Date: Re: AudioToolbox Pitch Bend?
  • Previous by thread: Re: Apache Module
  • Next by thread: Fwd: Apache Module
  • Index(es):
    • Date
    • Thread