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

502 via nginx proxy_pass #126

Open
sergeymavrin opened this issue Dec 7, 2023 · 3 comments
Open

502 via nginx proxy_pass #126

sergeymavrin opened this issue Dec 7, 2023 · 3 comments

Comments

@sergeymavrin
Copy link

Have interesting behaviour - if I make direct request to agoo - it's succeeded, but when make a request via nginx - get 502.
In this request long reqeust is exequting to mysql (about 15-20 seconds).
1
and it seems, that agoo initiate close connection due to #define CON_TIMEOUT 10.0
Can you help me to understand the difference between direct call and via nginx proxy_pass (proxy_send_timeout, proxy_read_timeout and proxy_connect_timeout all set to 1800s) and can I tune this value?

@ohler55
Copy link
Owner

ohler55 commented Dec 7, 2023

As you probably saw in the code it is not currently configurable. That is something I can add though.

@sergeymavrin
Copy link
Author

That would be amazing to have an option in Server.init method )
But the question - why direct request to Agoo not catching 502 - is still interesting

@ohler55
Copy link
Owner

ohler55 commented Jan 21, 2024

The "rackup_handler" branch has an option for setting the connection_timeout.

I'm not sure about the nginx issue. If you have an environment setup for testing that can you let me know what the request from nginx looks like?

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