forked from quic-go/quic-go
add a function to set the UDP send buffer size
This function is the equivalent to the function used to set the UDP receive buffer size. It's so similar that code generation is used to make a copy of the setReceiveBuffer function.
This commit is contained in:
4
.github/workflows/go-generate.sh
vendored
4
.github/workflows/go-generate.sh
vendored
@@ -11,6 +11,10 @@ cp -r "$DIR" generated
|
||||
cd generated
|
||||
# delete all go-generated files generated (that adhere to the comment convention)
|
||||
grep --include \*.go -lrIZ "^// Code generated .* DO NOT EDIT\.$" . | xargs --null rm
|
||||
|
||||
# First regenerate sys_conn_buffers_write.go.
|
||||
# If it doesn't exist, the following mockgen calls will fail.
|
||||
go generate -run "sys_conn_buffers_write.go"
|
||||
# now generate everything
|
||||
go generate ./...
|
||||
cd ..
|
||||
|
||||
Reference in New Issue
Block a user