-
Notifications
You must be signed in to change notification settings - Fork 10
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
HTTP requests take a long time to process #6
Comments
If I'm understanding correctly, you are running
The problems you describe do sound network-related to me. One way to test this is to use If testing as above doesn't cause hangs in the same way as using
Then run The network-related issues that come to my mind which have caused similar problems for me in the past have involved accidental duplication of client MAC addresses and/or IP addresses, causing the network to become confused regarding how to route back to each client. I'd suggest checking that all addresses are unique on your network as an easy step to rule out this kind of problem. |
One thing I forgot to mention: the URL remapping that The URLs which "dl": "http://SERVER:8000/crates/{crate}/{crate}-{version}.crate",
"api": "http://SERVER:8000/" To change the URL pattern to match "dl": "http://SERVER:8000/crates/{prefix}/{crate}/{crate}-{version}.crate",
"api": "http://SERVER:8000/" Commit the |
We're pretty sure our network isn't the issue - every client we've tested with has their own IP address and the MAC addresses aren't duplicated. We did a test with We ended up using nginx and it looks like all clients are now able to hit the romt server with no hang. Thank you for the quick response though! |
Thanks for verifying that your network addresses are unique. I'm glad to hear that nginx is working for you. The idea of running I don't know how to replicate the issue you were seeing. I tried a three-node configuration similar to what you describe and ran In any event, I'm glad to hear your system is up and running :-) |
Since things are working for you and I can't replicate the issues you were seeing, I'm closing this ticket. Feel free to re-open if more information comes to light. |
I'm seeing an issue where HTTP requests can take a long time to process before a response is sent, when it should be almost instant. This usually manifests when a client on a different machine has performed a successful HTTP request prior to the stuck HTTP request on the first machine.
As an example, I have two clients on an airgapped network and a server running romt. On the first client, I am able to pull crates and access the server directory through a web browser with no perceived slowness. I then go on the second client and access the server directory through a web browser with no perceived slowness. When I go back to the first client and attempt to pull crates or access the server directory, it will hang on the request (anywhere from ~90 seconds to forever) before it responds. Additionally, while the first client is stuck after a request, if the second client performs a request the server will not only respond to the second client, but it will also respond to the first client with the data it requested.
I do not believe this to be an issue with our network. When I use wireshark, I can see that the client is successfully communicating with the server. The client sends the HTTP request and the server ACKs it before it hangs.
We currently have the romt server running on a Ubuntu machine and it's configured to serve over unencrypted HTTP. We haven't tried using nginx, but we will try that configuration to see if this manifests. If anything seems unclear, I can grab screenshots or a screen capture to demonstrate.
The text was updated successfully, but these errors were encountered: