summaryrefslogtreecommitdiffhomepage
path: root/conn
diff options
context:
space:
mode:
Diffstat (limited to 'conn')
-rw-r--r--conn/bind_std.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/conn/bind_std.go b/conn/bind_std.go
index 0266d6b..1ee2cef 100644
--- a/conn/bind_std.go
+++ b/conn/bind_std.go
@@ -272,7 +272,10 @@ func (s *StdNetBind) makeReceiveIPv6(pc *ipv6.PacketConn, conn *net.UDPConn) Rec
// TODO: When all Binds handle IdealBatchSize, remove this dynamic function and
// rename the IdealBatchSize constant to BatchSize.
func (s *StdNetBind) BatchSize() int {
- return IdealBatchSize
+ if runtime.GOOS == "linux" {
+ return IdealBatchSize
+ }
+ return 1
}
func (s *StdNetBind) Close() error {