-
Notifications
You must be signed in to change notification settings - Fork 321
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
Support uploads (100 Continue) #878
Comments
Because it uses async-h1, tide should by default send a 100 continue to any client that sends an |
How about adding a test for it? |
It is tested in async-h1. |
https://gms.tf/when-curl-sends-100-continue.html mentions cURL having I've tested it with
and I see tide 0.16 returning 100-continue NP (when we decide to read the body, that is)
|
How can a Tide handler send a
tide::StatusCode::Continue
response with no body and then later send a full response?I am deploying an API server which uses Tide. I'm deploying it on Heroku. When Heroku's load balancer forwards a request to a server, the server must send some data back within 30 seconds, otherwise the load balancer closes the connection with a 503 [0]. This means that when a slow client takes more than 30 seconds to send the request body, the request fails. This is a problem for clients uploading 10MB image files over unreliable mobile Internet connections. Such uploads often take more than 30 seconds. The solution is to send a
100 Continue
response before reading the request body.[0] https://devcenter.heroku.com/articles/request-timeout
The text was updated successfully, but these errors were encountered: