Connecting to rocket server is really slow #2766
-
Hello, Some context: I'm using windows, rocket 0.5. I have noticed significant delays when making requests to my local Rocket server using CURL, with each GET request taking upwards of 250ms. For comparison, GETting
No extra configs, features, or anything of the sort, yet a CURL request to this simple server consistently takes around 250ms, which is completely unexpected. My question is, what am I missing here? Is there maybe some fairing or something else that is doing extra checks in the background I'm not aware of? I tried disabling the default Shield fairing with Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Are you compiling your project with |
Beta Was this translation helpful? Give feedback.
-
You'll need to provide more details about what you're doing. What commands exactly are you running? What log output are they producing? Where (shell environments, WSL, console/terminals) are you running them? Which version of the tools are you using? Can you reproduce the slowdown with another kind of local server (say a simple python -m SimpleHttpServer) or is it just specific to Rocket? |
Beta Was this translation helpful? Give feedback.
Try not using localhost, which will invoke name resolution. If it does IPv6, it can be very slow on Windows. Use 127.0.0.1.