in reply to Re: Passing a socket to a parent
in thread Passing a socket to a parent

I am using select, but since I am doing thousands of connects (flaw in gnutella spec, lists files sharing and kb shared on pong, but not how many open connection slots they have available...). This tends to chew into my good old packet handling time, which there is quite a lot of, due to the nature of gnutella.

                - Ant
                - Some of my best work - (1 2 3)

Replies are listed 'Best First'.
Re: Re: Re: Passing a socket to a parent
by samtregar (Abbot) on Jun 04, 2002 at 04:11 UTC
    Does that mean you intend to solve the problem by forking thousands of children? If so, I don't think that will result in much of an improvement! Have you tried IO::Poll? Rumor has it that it's capable of better performance than good ol' select().

    -sam

      No, not at all... my thought was to divorce the connection process to one child, so I don't slow down my packet handling with timing out socket connects and the like...

      I haven't tried IO::Poll, I will take a look at it... though my problem isn't really with IO::Select, more so with the overhead of making socket connections...

                      - Ant
                      - Some of my best work - (1 2 3)