http://qs1969.pair.com?node_id=124220


in reply to Re: bidirectional IPC (Linux)
in thread bidirectional IPC (Linux)

After looking at your module i think its of no real use
for me, nor for any other real server application, or
forking application, because having one one port for each
process is too much, and why don't you use unix-domain-sockets?

Replies are listed 'Best First'.
Re: Re: Re: bidirectional IPC (Linux)
by jepri (Parson) on Nov 09, 2001 at 03:40 UTC
    Couple of responses:

    • I was under the impression that every network socket has an associated domain socket (not that I ever checked).
    • You said you had already tried UDS
    • Exactly how many processes were you planning to use? There are 64000 possible sockets which means that you can have 32000 forked processes before you run out of sockets.
    • If you are trying to write code for a machine that can handle 32000 processes, grab the Apache source code since that is the canonical example of a really good forking server. And then give me an account on your machine :)
    • If you read the pod, my goal was portable reliable forking IPC.
    • I am currently reworking the architecture so that you can drop in any transport layer that you want to use - I have a demo using SysV message queues, and I can't wait to hear your comments on that one.
    • The basic architecture of my code is useful for a preforking server, regardless of the transport layer. For someone who doesn't even know what select does, you seem to be pretty good at pointing out why code you don't understand is unsuitable for your purpose.

    ____________________
    Jeremy
    I didn't believe in evil until I dated it.

      >You said you had already tried UDS

      i dont think that either uds or sockets are good for that, but ok that may be wrong

      >I am currently reworking the architecture so that you can drop in any transport layer that you want to
      >use - I have a demo using SysV message queues, and I can't wait to hear your comments on that one.

      cool

      >The basic architecture of my code is useful for a preforking server, regardless of the transport layer.
      >For someone who doesn't even know what select does,
      >you seem to be pretty good at pointing out why code you don't understand is unsuitable for your purpose.

      sorry about that, but i read the pod, and thats what i took as source for my opinion, but nevertheless i will try your module, and maybe then, if i ever get it running with pipes, will compare the speed and reliability of both. But sure, your way is an easy one.