Commit 050f2525 authored by ale's avatar ale

Fix an error when io.CopyBuffer returns n=0

It could be that the "n=0 means EOF" semantics are leaking from the
underlying splice() system call? Anyway this prevents radiod from
getting stuck in a busy loop in certain(?) cases.
parent 828c8956
Pipeline #2715 passed with stages
in 4 minutes and 39 seconds
......@@ -175,6 +175,10 @@ func copyStream(tag string, out, in *net.TCPConn, promCounter prometheus.Counter
if n == 0 {
log.Printf("http: proxy got 0 bytes from splice()")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment