in reply to Re: •Re: A non-forking server model with issues closing sockets on users
in thread A non-forking server model with issues closing sockets on users

I see that you're putting handles as keys in hashes. That won't work. Keys are always stringified, destroying the power of the handle object as an object. You'll need to do some redesign.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Re: •Re: A non-forking server model with issues closing sockets on users

Replies are listed 'Best First'.
Re: •Re: Re: •Re: A non-forking server model with issues closing sockets on users
by JPaul (Hermit) on Mar 24, 2003 at 21:02 UTC
    Ah.

    Well. That'd be that then. Many thanks, I've been banging my head against a wall on this one... Sure enough, store the socket in the hash, and then do a close() on that stored socket handle - Everything is happy.

    JP,
    -- Alexander Widdlemouse undid his bellybutton and his bum dropped off --