Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^11: Timeout for an established connection

by BrowserUk (Pope)
on Jan 03, 2013 at 20:51 UTC ( #1011516=note: print w/replies, xml ) Need Help??

in reply to Re^10: Timeout for an established connection
in thread Timeout for an established connection

Maybe this is an error in the syntax? setsockopt($sock, 6, 18, pack("QQ", 5, 0))

That does look suspect to me.

According to this (4th post), the parameter is the address of an int containing the timeout in milliseconds. Given you are on a 64-bit build I'd expect to use something like this in Perl:

setsockopt( $sock, 6, 18, pack( "Q", 5000 ) )

Or possibly:

my $userTimeout = 5000; setsockopt( $sock, 6, 18, \$userTimeout );

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011516]
[Lady_Aleena]: File::Find doesn't have a simple sub wanted example, like get the name of the file.
[Discipulus]: there is also find2perl with your perl installation
[Discipulus]: and in the wanted sub you just calculate the duretion and add it the total, stop
[shmem]: sub wanted { push @files, $File::Find::name if $File::Find::name =~/\.mp3$/ }

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2017-04-23 20:48 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (432 votes). Check out past polls.