Re: Transferring xhr messages between Apache and a Persistent Program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 11, 2012 at 1:11 PM, Bob Furber <burnsmicro@xxxxxxxxx> wrote:
> Can anyone point me in the right direction as to how to go about
> Transferring xhr messages between Apache and a Persistent Program?
>
> We currently use a cgi script (C program) that transfers xhr messages back
> and forth to a persistent (C) program using shared memory.
>
> Although the CGI program [script] is very simple, the binary is ~500K which,
> presumably must be loaded on every cgi call. I suspect there are more
> elegant and efficient methods.
>
> I have never looked under Apache's hood, so I would be grateful for any
> suggestions, book titles, etc.
>
> I am working with a TS-7553 Arm based controller running Apache2 under
> Debian Lenny.

One step up would be to use FastCGI instead of CGI, which would leave
your request handler running as a separate process but which would
perform much better as there would be no need to create a new process
for every request it handles.  That might not require too many changes
to your code, depending on how it is structured.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux