No such thing as a small change | |
PerlMonks |
Re: IO::Socket persisting on Linux despite being closedby superfrink (Curate) |
on Oct 25, 2018 at 19:12 UTC ( [id://1224694]=note: print w/replies, xml ) | Need Help?? |
Linux keeps the socket in use while it is in the TIME_WAIT state. The SO_REUSEADDR option may help. I haven't tried but does the following work?
Update: IO::Socket::INET references SO_REUSEADDR and SO_REUSEPORT. You may need to try each.
In Section
Seekers of Perl Wisdom
|
|