quic-go icon indicating copy to clipboard operation
quic-go copied to clipboard

iOS (including macOS) socket buffer size

Open lzy201314 opened this issue 8 months ago • 3 comments

I am writing an APP that integrates the go SDK and uses the quic-go framework. The following error is reported: failed to sufficiently increase receive buffer size (was: 768 kiB, wanted: 7168 kiB, got: 6144 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.\

How do I set the maximum buffer size of the socket in iOS APP development? It seems that the iOS system has a maximum limit of 6MB.

lzy201314 avatar Apr 02 '25 09:04 lzy201314

You might want to ask that question in some iOS developer forum.

marten-seemann avatar Apr 02 '25 09:04 marten-seemann

`

quicConfig := &quic.Config{ EnableDatagrams: true, }

if runtime.GOOS == "ios" {
	quicConfig.MaxConnectionReceiveWindow = 1024 * 1024 * 6
	quicConfig.MaxStreamReceiveWindow = 1024 * 1024 * 6
}`

xf-yang avatar Apr 03 '25 11:04 xf-yang

@xf-yang This is wrong. The UDP has absolutely nothing to do with the OS UDP receive buffer.

marten-seemann avatar Apr 03 '25 12:04 marten-seemann