-
Notifications
You must be signed in to change notification settings - Fork 203
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
Concurrent uploads to S3 fails #491
Comments
Hi, can you try not setting the chunk size on the client, you never want to set this it's always worse unless you are forced to. I would also considering lowering the S3 part size (for instance 10MB or 20MB), which doesn't have anything to do with the client chunk size and they don't have to be in sync. Can you see if the issue persists then? Of course, the tus server should work with all settings but I I'm trying to see if it may be a connection error to S3 because of your settings. |
@josephrony277 Do you use Amazon S3 or any other provider? |
Fairly certain this was fixed in @tus/[email protected] or @tus/[email protected]. We can reopen if someone can reproduce this. |
I know this is an old issue but I want to share my thoughts on this if someone comes creeping around :) Change was made in node v18.0.0 (released on Disabling this timeout completely resolves this issue.
Release notes: https://nodejs.org/en/blog/release/v18.0.0
|
Thanks for sharing, @mitjap! Request timeouts are useful to limit a request's duration and avoid leaking resources. Do you know if the request timeout can be set on a per-request basis? Then it could be disabled only for PATCH requests. |
I couldn't find a way to configure this on a per-request basis. |
Since we already create context with two abort signals and pass it around, we could probably remove the request timeout and do it manually. |
I'm trying to upload files from different clients to S3 concurrently. Most of the concurrent uploads finish without issues, but for a few uploads, the patch request returns a 408-time-out error after 3 mins. Node js server application has thrown this error below
{
"code": "ECONNRESET",
"name": "Error",
"message": "aborted",
"stack": "Error: aborted\n at connResetException (node:internal/errors:720:14)\n at abortIncoming (node:_http_server:766:17)\n at socketOnClose (node:_http_server:760:3)\n at Socket.emit (node:events:529:35)\n at Socket.emit (node:domain:489:12)\n at TCP. (node:net:350:12)"
}
I tried a fix for the issue #409 and even with the latest version, the issue still remains.
Even when closing the closing the client app during upload, the same error is thrown in the server application.
Fyi,
The text was updated successfully, but these errors were encountered: