goflow2: zero queue_size means blocking

This commit is contained in:
lspgn
2024-01-06 00:58:36 -08:00
parent ff4ddca5d5
commit f9b9fdb195
+4
View File
@@ -226,6 +226,10 @@ func main() {
queueSize = 1000000
}
if queueSize == 0 {
isBlocking = true
}
hostname := listenAddrUrl.Hostname()
port, err := strconv.ParseUint(listenAddrUrl.Port(), 10, 64)
if err != nil {