-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
PUT timeout after a OPTIONS/HEAD request #401
Comments
Could you please provide more details? What does you PUT route do? does it happen with other routes or just that specific one? What OS are you on? etc... |
Sorry, not reproducible. I need more time to investigate it. |
No worries, let me know if anything comes up. |
@samichoulo911 wrote
|
I was able to reproduce on my side using watefox is there a way to check my version of crow? That being said I downloaded the latest version about a week ago.
For the moment setting the app timeout at 0 ( |
You're most likely using
Yes, any request that takes Crow more than 0 seconds to process will timeout, which is generally quite bad. I'll try to reproduce the bug on my side using your exact code and see what comes up |
I suspect something related to the CORS middleware is blocking the thread until the deadline is triggered |
I still can't get the issue to appear, are you using MSVC @samichoulo911 @jeanbiber ? it could be a compiler quirk |
I tried using g++ and clang++ compiling in c++2a and got the delay with both. I am running on Kubuntu 21.10 |
Still can't reproduce the bug whatsoever :/ |
Here's my log, interestingly enough it seems you're missing some debug logs (specifically those created when a new connection is created), this could be a cause of the The colors are the same with the exception that the red part is run after the keep-alive time runs out, the responses are made immediately. |
Hi, after I fixed locally for me the issue with the missing content-length in OPTIONS, the timeout problem with a PUT request was gone. |
@samichoulo911 can you confirm whether the fix for #402 fixes this issue as well for you too? |
Not sure where I should be adding the content-length header since the OPTIONS requests get processed automaticly. |
@samichoulo911 If you haven't updated Crow to where #424 is applied, what you did has the same effect, though @424 does it without using any middleware. |
I'm guessing that's why I wasn't able to reproduce the issue (I was using a version that had I'll close this issue as fixed in #424. |
If i immediatly send a PUT request after an OPTIONS or HEAD request, the answer from the PUT only comes back after 5 seconds (default timeout).
The text was updated successfully, but these errors were encountered: