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

Starman and timeout #92

Open
kolok opened this issue Dec 26, 2013 · 1 comment
Open

Starman and timeout #92

kolok opened this issue Dec 26, 2013 · 1 comment

Comments

@kolok
Copy link

kolok commented Dec 26, 2013

Hello,

My situation is the following.
I use starman to serve a Perl Dancer API application. My main client timeout after 10 seconds. But the starman still run after if the request is really big (BigData project) then if a client call the API on the same server instance which still run then it doesn't answer.

Is there a way to set a time out on starman which stop the execution of Dancer request ?

Thank you
Nicolas

@Nowaker
Copy link

Nowaker commented Oct 12, 2018

@kolok I think Plack::Middleware::Timeout is where you would handle timeouts on the server side. If you have nginx in front of Starman, it'll give up after certain time (60 seconds by default), but the Perl code will still run.

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