Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by merlyn (Sage)
on Mar 24, 2003 at 20:47 UTC ( #245531=note: print w/replies, xml ) Need Help??


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 --

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://245531]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2023-09-29 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?