-
Notifications
You must be signed in to change notification settings - Fork 487
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
crash with http2 #1036
Comments
Can you provide a way to reproduce this? If possible, a simple Go file for the server and a |
server side
client side
|
maybe this issues: golang/go#58237 |
That could very well be the issue. tusd uses |
since go version 1.6, The net/http package has provided transparent support for the HTTP/2 protocol |
Ok, I had hoped that the H2 package can be upgraded independently. Until this bug is fixed in Go itself, you can try to prevent tusd calling You can try wrapping tusd/pkg/handler/unrouted_handler.go Line 163 in 7970961
if r.Body != nil and see if that helps.
|
thx very mush |
this is will not fix the problem |
That's great to hear! Cloud you open a PR for this? Then we can merge an release the fix. |
could not resolve problem -_-~~ |
Oh sorry, I misread your comment. We also call SetReadDeadline at tusd/pkg/handler/unrouted_handler.go Line 851 in 7970961
There is also tusd/pkg/handler/body_reader.go Line 109 in 1a43e26
closeWithError should also only be called if the request body is not nil.
From your original comment, it also looks like this occurred for a PATCH requests with a body. So maybe this is another issue than golang/go#58237. |
tusd version: v2.1.0
Using the tusd package programmatically as same demo, and use filestore
The text was updated successfully, but these errors were encountered: