Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Socket Listener not available

Reply
Thread Tools

Socket Listener not available

 
 
not entered
Guest
Posts: n/a
 
      03-31-2005
I've got a perl script running on a linux box. The script uses a socket
server and when I stop the script and restart it, I can't get a listener for
about 5 minutes. The line that I'm using to get the listener is:

$manager = new IO::Socket::INET ( Listen => 5, LocalPort => 1099);

SOMETIMES I can get new listeners right away... most of the time it takes
about 5 minutes... occasionally it takes 10 or 20 mins.

Does anyone know what's happening? Should I be stopping the script more
gracefully?

Stephen.


 
Reply With Quote
 
 
 
 
Joe Smith
Guest
Posts: n/a
 
      03-31-2005
not entered wrote:
> when I stop the script and restart it, I can't get a listener for
> about 5 minutes.


perldoc IO::Socket::INET
ReusePort Set SO_REUSEPORT before binding
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 0 02-01-2009 07:37 AM
socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 1 01-27-2009 05:05 PM
Re: socket.unbind or socket.unlisten? - socket.error: (48,'Address already in use') Jean-Paul Calderone Python 0 01-27-2009 01:41 PM
.net remoting and tcp listener socket Danish Ahmed ASP .Net 2 04-21-2005 11:02 AM
Forking a daemonic Socket listener from a CGI script - browser times out Clyde Ingram Perl Misc 1 12-12-2003 04:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57