[Info-vax] Apache + mod_php performance

Dave Froble davef at tsoft-inc.com
Thu Oct 10 23:46:54 EDT 2024


On 10/7/2024 2:01 PM, Dan Cross wrote:
>> As Dave has mentioned, setting SO_SHARE on a socket would be another way
>> to accomplish this.
>
> Neither of these sounds the same as descriptor passing over Unix
> domain sockets on Unix/Linux; the auxiliary server sounds more
> like `inetd`, in that there's some service that's listening and
> accepting connections on some TCP/IP port, and then creating a
> server to handle each incoming connection.

I would claim that what I did is NOT passing a descriptor, or whatever, to 
another process.  Not really sure what that means.  All I passed was the device 
name, and let the second process assign a channel to the "existing" device (socket).

> SO_SHARE is different again; it appears that the shared socket
> must be created before the subprocesses that use it are created.

I don't know why you would say that.  A process must exist before it can do 
anything, but, a socket can exist in a process, and then connected to in another 
process, regardless of when the second process is created.  For example, if a 
bank of worker processes exist, and a task comes in, the connection socket could 
be opened by the existing selected worker process.


-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486


More information about the Info-vax mailing list