pack packets into large buffers when GSO is available

This commit is contained in:
Marten Seemann
2023-04-30 17:27:50 +02:00
parent 628ba87727
commit 5b5ffa942b
16 changed files with 339 additions and 186 deletions

View File

@@ -24,7 +24,7 @@ var _ = Describe("Connection (for sending packets)", func() {
It("writes", func() {
packetConn.EXPECT().WriteTo([]byte("foobar"), addr)
Expect(c.Write([]byte("foobar"))).To(Succeed())
Expect(c.Write([]byte("foobar"), 6)).To(Succeed())
})
It("gets the remote address", func() {