[Info-vax] Apache + mod_php performance
Lawrence D'Oliveiro
ldo at nz.invalid
Sun Sep 29 22:03:30 EDT 2024
On Sun, 29 Sep 2024 21:58:45 -0400, Arne Vajhøj wrote:
> On 9/29/2024 9:46 PM, Lawrence D'Oliveiro wrote:
>>
>> On Sun, 29 Sep 2024 21:42:48 -0400, Arne Vajhøj wrote:
>>>
>>> On 9/29/2024 9:21 PM, Lawrence D'Oliveiro wrote:
>>>>
>>>> Then it asks another process for a copy of that socket descriptor.
>>>> Perhaps there is one overall connection-management process that
>>>> accepts all new connections; if not, another worker that has that
>>>> socket can pass it along.
>>>
>>> It should not be a problem of copying a socket descriptor from one
>>> process to another process - I believe it is just an int.
>>>
>>> But will it work in the other process????
>>
>> That’s not how you do it. You pass it with the SCM_RIGHTS
>> ancillary-data option in Unix-family sockets
>> <https://manpages.debian.org/7/unix.7.en.html>.
>
> Worker A has a AF_INET socket to client so what AF_UNIX socket does it
> pass to worker B?
You can pass any FD (AF_INET socket, file, pipe, even another AF_UNIX
socket) over an AF_UNIX socket.
More information about the Info-vax
mailing list