New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IO::Socket::INET does not bind UDP sockets to ephemeral ports #11809
Comments
From imran.patel@gmail.comCreated by imran.patel@gmail.comPerls' IO::Socket::INET core library module has a bug which prevents creating a The standard way to bind to an available port is to set the port to zero when my @socket_args = ( Except this doesn't work. Here's the offending bit from IO/Socket/INET.pm: if($lport || ($laddr ne INADDR_ANY) || exists $arg->{Listen}) { In reality, $lport is undef instead of zero because of another bug, but it The same thing is true for TCP. But since the Listen option is usually supplied I think the best workaround is to use the core Socket.pm module directly. Perl Info
|
From @jkeenanOn Thu Dec 15 16:15:45 2011, imran.patel@gmail.com wrote:
Can you be a bit more explicit as to what doesn't work? Also, can you try this on a currently supported version of Perl (5.12 or
Thank you very much. |
The RT System itself - Status changed from 'new' to 'open' |
From @ikegamiOn Fri, Jan 6, 2012 at 7:12 PM, James E Keenan via RT <
He wants bind() to be called, and it isn't. So the real question is: Why Maybe one can't query the socket to find out which port it's bound to until Also, can you try this on a currently supported version of Perl (5.12 or
The statement in question is still present unchanged in the latest - Eric |
From imran.patel@gmail.com
Imran |
From @jkeenanOn Sun Jan 08 14:57:13 2012, imran.patel@gmail.com wrote:
Have you had any opportunity to try this on a supported version of Perl? Thank you very much. |
From imran.patel@gmail.comNo I haven't had access to anything more modern than 5.8.8. Do you want me Imran On Fri, Mar 23, 2012 at 6:29 PM, James E Keenan via RT <
|
This behaviour is unchanged in the version of IO::Socket::INET bundled with v5.28.1. However, IO::Socket::IP exhibits the behaviour that the op wanted.
e.g.
Is there therefore still a perceived need to keep this ticket open with the intention of changing the longstanding behaviour of IO::Socket::INET? |
|
Migrated from rt.perl.org#106370 (status was 'open')
Searchable as RT106370$
The text was updated successfully, but these errors were encountered: