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
sendfile() copies data between one file descriptor and another. Because this copying is done within the kernel, sendfile() is more efficient than the combination of read(2) and write(2), which would require transferring data to and from user space.
Unfortunately this optimisation is not possible because gziphandler has to gzip the response body. There is just no straight path from file descriptor to file descriptor.
Validation with https://middleware.vet#github.com/NYTimes/gziphandler shows that
GzipResponseWriter
is not implementingio.ReaderFrom
for http1.1Is it possible to implement these only for http1.1 and not for http2 while still reusing response writers?
The text was updated successfully, but these errors were encountered: