Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Query regarding LWP

by Discipulus (Canon)
on Jun 23, 2015 at 09:31 UTC ( [id://1131591]=note: print w/replies, xml ) Need Help??


in reply to Query regarding LWP

Just a suggestion (i'm really not an expert): IO::Socket is a IO::Handle and as all handles it autoclose when it goes out of scope and in other circumstances too (filehandle have close on exec: see perlipc ).
In general sense, Perl does a lot of kind things for you, behind the scenes, garbage collection is one of theese.

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Query regarding LWP
by albus123 (Novice) on Jun 23, 2015 at 21:43 UTC
    Thanks for the response. Is there a way to confirm if it is the garbage collector that is performing the socket close in this scenario? I know the specific routine where the close seems to be happening. Any other information that can help confirm the same would be great. Thanks.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-20 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found