]> Cypherpunks repositories - gostls13.git/commit
net: reflect TCP backlog size update of uint16->uint32 on Linux
authorCuong Manh Le <cuong@orijtech.com>
Tue, 22 Sep 2020 02:30:31 +0000 (09:30 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 23 Sep 2020 02:32:24 +0000 (02:32 +0000)
commit0a9dd47dd817904ec2b4a80b551e6050218ee8a6
tree7bcdb749fca76447145c22b2831cb47ef4e99e4c
parentd2bd93a01096ac6dc8061112e7a9ac62ec239627
net: reflect TCP backlog size update of uint16->uint32 on Linux

The sk_max_ack_backlog was increased from uint16 to uint32 in kernel
version 4.1 and above, so adopt that change to maxListenerBacklog.

See https://github.com/torvalds/linux/commit/becb74f0acca19b5abfcb24dc602530f3deea66a

Fixes #41470

Change-Id: I63a142eb28f3ac3acaca57f0903c085c6cb15a6e
Reviewed-on: https://go-review.googlesource.com/c/go/+/255898
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Trust: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/net/sock_linux.go
src/net/sock_linux_test.go [new file with mode: 0644]