You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have plackup get a port from the kernel that is ensured to be open. The correct way to do this is to set the port to 0 and the kernel will assign a free port to the socket. If you tell plackup to use port 0 (or listen 0:0) it will just use one of the predefined ports, instead of letting the kernel choose.
I suspect that the fix for this involves checking definedness instead of truthiness on the value you get back, but I'm not sure.
The text was updated successfully, but these errors were encountered:
plackup does seem to support --listen 0:0 and then individual servers might default to other ports if they do not support automatic allocation of the port. (HTTP::Server::PSGI, the default backend, seems to default to 8080 then)
I would like to have plackup get a port from the kernel that is ensured to be open. The correct way to do this is to set the port to 0 and the kernel will assign a free port to the socket. If you tell plackup to use port 0 (or listen 0:0) it will just use one of the predefined ports, instead of letting the kernel choose.
I suspect that the fix for this involves checking definedness instead of truthiness on the value you get back, but I'm not sure.
The text was updated successfully, but these errors were encountered: