-
Notifications
You must be signed in to change notification settings - Fork 84
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
Crashing when listening on a socket with Server::Starter #120
Comments
I find debug message from Plack::Runner
My cmd is So I change my cmd.
And find debug message from Plack::Runner
But It has same error.
|
about your later comment - you can't use the same UNIX socket for start_server and starman. Starman will automatically open the fd that start_server passes to starman. About the message, it just uses the default port of 0:5000 for the display purpose and i don't think it actually uses that port number. Can you try installing Devel::Confess and try running with |
I find other debug message from Net::Server::Proto::UNIX
But there is no message with Server::Starter So I compare options in Net::Server.
When I tried Starman with Server::Starter by unix socket.
When I tried only Starman by unix socket.
|
Also try I cannot reproduce the error, it seems to work fine. When exactly do you get that error? When a client connects to the start_server? via nginx or something? |
Oh I find your comment now. |
But I have call stack from cluck to only load psgi.
|
I got this:
|
Net::Server(::SS) assumes that the client is a TCP socket. |
@miyagawa @nagata-logly So it turns out to be an issue of Net::Server::SS::PreFork, a module related to Server::Starter. Thank you very much for identifying the cause. I have just imported the source code of the module from CodeRepos to github. Looking at it (PreFork.pm line 20), it is obivous that the module only expects a TCP socket to be passed over. |
@nagata-logly Sorry I wasn't clear of the next steps. I've opened a issue (see ^^). You could just wait for someone to fix the issue, or you could implement a fix by yourself and file a PR! FWIW, you can use |
the alternative to use Starlet, assuming that's supported there. |
@miyagawa Thank you for stating that. Thanks to @nagata-logly we have a working fix on kazuho/p5-Net-Server-SS-PreFork#2, so people can use Starman + Server::Starter with Unix sockets 👍 |
I tried Starman with Server::Starter by unix socket.
But it didn't work.
error is here.
And I found similar issue in Server::Starter
kazuho/p5-Server-Starter#27
But @kazuho say 「This is likely a bug in Starman」
When I tried only Starman by unix socket.
It work fine.
When I tried Starman with Server::Starter by unix socket.
It not work.
The text was updated successfully, but these errors were encountered: