quic-go
quic-go copied to clipboard
iOS (including macOS) socket buffer size
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.
You might want to ask that question in some iOS developer forum.
`
quicConfig := &quic.Config{ EnableDatagrams: true, }
if runtime.GOOS == "ios" {
quicConfig.MaxConnectionReceiveWindow = 1024 * 1024 * 6
quicConfig.MaxStreamReceiveWindow = 1024 * 1024 * 6
}`
@xf-yang This is wrong. The UDP has absolutely nothing to do with the OS UDP receive buffer.