Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alber committed Sep 30, 2020
1 parent 1ab9040 commit 0739133
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/tcp_conn/tcp_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ var server *gn.Server

func StartTCPServer() {
var err error
server, err = gn.NewServer(config.TCPConn.TCPListenAddr, &handler{}, gn.NewHeaderLenDecoder(2, 254), gn.WithTimeout(5*time.Minute, 11*time.Minute))
server, err = gn.NewServer(config.TCPConn.TCPListenAddr, &handler{},
gn.NewHeaderLenDecoder(2, 254),
gn.WithTimeout(5*time.Minute, 11*time.Minute),
gn.WithAcceptGNum(10),
gn.WithIOGNum(100))
if err != nil {
logger.Sugar.Error(err)
panic(err)
Expand Down

0 comments on commit 0739133

Please sign in to comment.