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 2dcc936 commit 77747c0
Showing 1 changed file with 2 additions and 2 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")
util.DoCmd("sysctl", "-w", "kern.ipc.maxsockbuf=3014656")
util.DoCmd("sysctl", "-w", "net.core.rmem_max=2500000 2>/dev/null")
util.DoCmd("sysctl", "-w", "kern.ipc.maxsockbuf=3014656 2>/dev/null")
}

func RunHttp3(addr string, router *gin.Engine) (err error) {
Expand Down

0 comments on commit 77747c0

Please sign in to comment.