FIx batched InputPackets
This commit is contained in:
parent
57baac9504
commit
2c27bbf4f9
2 changed files with 23 additions and 11 deletions
|
|
@ -408,6 +408,13 @@ func (e ErrUDPGSODisabled) Unwrap() error {
|
|||
}
|
||||
|
||||
func (s *StdNetBind) Send(bufs [][]byte, endpoint Endpoint, offset int) error {
|
||||
for len(bufs) > IdealBatchSize {
|
||||
err := s.Send(bufs[:IdealBatchSize], endpoint, offset)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
bufs = bufs[IdealBatchSize:]
|
||||
}
|
||||
s.mu.Lock()
|
||||
blackhole := s.blackhole4
|
||||
conn := s.ipv4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue