Skip to content
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

twice: Use of uninitialized value $port [rt.cpan.org #82816] #13

Closed
oalders opened this issue Apr 1, 2019 · 1 comment
Closed

twice: Use of uninitialized value $port [rt.cpan.org #82816] #13

oalders opened this issue Apr 1, 2019 · 1 comment

Comments

@oalders
Copy link
Member

oalders commented Apr 1, 2019

Migrated from rt.cpan.org#82816 (status was 'new')

Requestors:

From http://bogenstaetter.myopenid.com/ on 2013-01-18 21:34:20
:

When using it together with
SOAP::Transport::HTTP::Daemon::ReapForkOnAccept, a warning occurs:
Use of uninitialized value $port in numeric ne (!=) at
C:/Perl/lib/HTTP/Daemon.pm line 51.
Use of uninitialized value $port in concatenation (.) or string at
C:/Perl/lib/HTTP/Daemon.pm line 51.

I had already a look into it and would suggest a simple fix in line 51:
$url .= ":$port" if (defined($port) and $port != $self->_default_port);

(added: "defined($port) and" as well as brackets around the condition).

Thanks for your work!

Marcus


@genio
Copy link
Member

genio commented Jul 26, 2019

The way we're gathering the port should no longer allow this to happen.

@genio genio closed this as completed Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants