Skip to content

Conversation

@rhafer
Copy link

@rhafer rhafer commented Jul 16, 2025

The tusd http.Handler uses the SetReadDeadline and SetWriteDeadline methods of the net/http.NewResponseController API. For that to work it needs access to the underlying ResponseWriter that implement these calls. This is achieve by implementing the "Unwrap" method http.Handlers that implement wrappers for the underlying ResponseWriter. (See:
https://tus.github.io/tusd/advanced-topics/usage-package/#i-am-getting-warnings-regarding-networkcontrolerrornetworktimeouterror-and-feature-not-supported-why)

Fixes: opencloud-eu/opencloud#713

The tusd http.Handler uses the SetReadDeadline and SetWriteDeadline
methods of the  net/http.NewResponseController API. For that to work it
needs access to the underlying ResponseWriter that implement these calls.
This is achieve by implementing the "Unwrap" method http.Handlers that
implement wrappers for the underlying ResponseWriter.
(See:
https://tus.github.io/tusd/advanced-topics/usage-package/#i-am-getting-warnings-regarding-networkcontrolerrornetworktimeouterror-and-feature-not-supported-why)

Fixes: opencloud-eu/opencloud#713
@rhafer rhafer self-assigned this Jul 16, 2025
@rhafer rhafer requested a review from aduffeck July 16, 2025 12:25
@aduffeck aduffeck merged commit f3e620d into opencloud-eu:main Jul 16, 2025
19 checks passed
@openclouders openclouders mentioned this pull request Jul 16, 2025
1 task
MahdiBaghbani pushed a commit to MahdiBaghbani/reva-opencloud that referenced this pull request Oct 17, 2025
….golang.org/grpc/otelgrpc (opencloud-eu#285)

Bumps [go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc](https://github.com/open-telemetry/opentelemetry-go-contrib) from 0.57.0 to 0.61.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/CHANGELOG.md)
- [Commits](open-telemetry/opentelemetry-go-contrib@zpages/v0.57.0...zpages/v0.61.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
  dependency-version: 0.61.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A lot of warnings when uploading a file

2 participants