Timeout on slow connection #1845
Unanswered
slavslavov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a get handler and I am serving a large file ~25MB. One of my users reported that his connection is terminated and he can't download the whole file. It turned out his connection to the server is very slow. I managed to reproduce the issue locally by introducing some latency and network issues on my local network with this command:
and I see the onAborted handler is called. Putting a breakpoint there I saw it is called from the timeout handler
Question: How do I handle slow connections? Can I configure the timeout or disable it? Or maybe register a callback where I can return true/false if I would like to abort on timeout?
I am using version 20.71.0
Here is part of my code:
Beta Was this translation helpful? Give feedback.
All reactions