mirror of
https://github.com/netsampler/goflow2.git
synced 2024-05-06 15:54:52 +00:00
goflow2: zero queue_size means blocking
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user