proxy: enable splice in relay when using proxy.Conn

This commit is contained in:
nadoo committed 2020-10-22 19:42:42 +08:00
1 parent 904757052d
commit aefb9cd7ae
7 files changed
+22 -22

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ func (w *frameWriter) Write(b []byte) (int, error) {
}
buf := pool.GetBuffer(nPayload)
pool.PutBuffer(buf)
defer pool.PutBuffer(buf)
// mask
_, err = w.Writer.Write(w.maskKey[:])