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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

start_server ignores https/ssl configuration of starman/plackup #54

Open
xiconfjs opened this issue Nov 30, 2020 · 1 comment
Open

start_server ignores https/ssl configuration of starman/plackup #54

xiconfjs opened this issue Nov 30, 2020 · 1 comment

Comments

@xiconfjs
Copy link

Hi,

I don't exactly know if this fits here or in the Starman issue queue 馃槙

I'm starting my dancer2 application via starman (same with plackup) with the following command line...

start_server --port 7766 --pid-file=test5.pl.pid --status-file=test5.pl.status --signal-on-hup=QUIT -- starman --listen 127.0.0.1:7766:ssl --workers 3 --ssl-cert ./cert.crt --ssl-key ./cert.key --enable-ssl --disable-proctitle test5.pl

...but still start_server "limits" the service to http and drops the https requests. I could follow the provided arguments (--ssl-cert, --ssl-key, etc.) down to /usr/share/perl5/Net/Server.pm's _initialize() but then I lost the hope ;)

I also tried providing the arguments with the "--net-server" prefix like --net-server-ssl-cert with gives the same results (miyagawa/Starman#109).

If I start start_server without a port starman/plackup take over and provide an https service with all inner workings (as running it standalone) but then the process managing functions of start_server don't work anymore, because the "restart" procedure in start_server is to launch a new worker and then kill the old one - but as starman/plackup are already using the port a second starman/plackup instance can't sucessfully be start because the Address already in use.

Any thoughts on this?

Thanks
xiconfjs

@xiconfjs
Copy link
Author

x-post

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

1 participant