-
Notifications
You must be signed in to change notification settings - Fork 157
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
Does wait on
even work?
#117
Comments
@VasiliPupkin256 Where do you send the requests? can you enable debug and upload the log? |
I am sending requests to the app listening on the port 8080. How can I enable the debug log? This is all you need to reproduce the issue actually. A file
|
only one log: 127.0.0.1 - - [18/Sep/2021 03:19:50] "GET / HTTP/1.0" 200 - |
Ok. I see the problem. Nuster terminates the backend request immediately after a client closes connection to the frontend. It doesn't not wait and doesn't fetch the page from the backend completely. A worse example if there are N identical connections they all wait only for the first one and when the first connection is closed nuster passes another N-1 requests to the backend. This is not what a caching proxy suppose to do and it is possible to intentionally or unintentionally overload a backend by creating multiple requests to the same URL and terminating them shortly afterwards before the backend were able to respond. |
I am using the simplest config
and running it with a command
docker run --rm -it -v $(pwd)/nuster.cfg:/etc/nuster/nuster.cfg:ro --network=host nuster/nuster
When I open a browser and press F5 multiple time it passes multiple requests to the backend. Did I miss something?
The text was updated successfully, but these errors were encountered: