Skip to content

Commit b153585

Browse files
committed
blok
1 parent 48185bf commit b153585

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

handlers/scraper/remote.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ func handleConnection(conn net.Conn) {
9292
rm.outChan <- err
9393
return
9494
}
95-
break
95+
}
96+
if n == 0 {
97+
rm.outChan <- errors.New("remote scraper returns empty data")
98+
continue
9699
}
97100
fromRemote.Write(tmp[:n])
98101

0 commit comments

Comments
 (0)