You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't look like the http2 response writer supports the sendfile optimization that the http/1.x one does as it does not implement the ReadFrom method.
http2 is basically always over TLS (at least for common browsers, and for Go), where sendfile doesn't work.
But even if you used golang.org/x/net/http2 directly to implement h2c (cleartext http2), http2 has framing boundaries and a 16KB or so frame boundary, so you'd need to do many repeated small sendfile calls, which are much less beneficial.
It doesn't look like the http2 response writer supports the sendfile optimization that the http/1.x one does as it does not implement the ReadFrom method.
This method is what I am talking about:
go/src/net/http/server.go
Line 537 in 8016808
The text was updated successfully, but these errors were encountered: