Skip to content

Commit

Permalink
fixed #5 2023-12-26
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Dec 26, 2023
1 parent 77747c0 commit 97f380c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func SetSSL() {

// https://github.com/quic-go/quic-go/wiki/UDP-Receive-Buffer-Size
func SetUdpReceiveBufferSize() {
util.DoCmd("sysctl", "-w", "net.core.rmem_max=2500000 2>/dev/null")
util.DoCmd("sysctl", "-w", "kern.ipc.maxsockbuf=3014656 2>/dev/null")
util.DoCmd("sysctl", "-w", "net.core.rmem_max=2500000")
util.DoCmd("sysctl", "-w", "kern.ipc.maxsockbuf=3014656") // , "2>/dev/null"
}

func RunHttp3(addr string, router *gin.Engine) (err error) {
Expand Down
3 changes: 2 additions & 1 deletion vendor/github.com/hktalent/go-utils/config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 97f380c

Please sign in to comment.