1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-07 21:51:34 +08:00
parent 7d7cc0d174
commit d83d76ca8e
5 changed files with 17 additions and 37 deletions

View File

@@ -24,9 +24,9 @@ type Server struct {
handler Handler
discorse bool
quit bool
batchRead int
serverid uint16
port uint16
// batchRead int
serverid uint16
port uint16
}
type Option func(*Server)
@@ -38,9 +38,9 @@ func NewServer(options ...Option) *Server {
// handler: handler.NewTomeeHandler(), //请求返回
codec: codec.NewTomeeSocketCodec(), //默认解码器 len+pack
workerPool: goroutine.Default(),
bufferSize: 4096, //默认缓冲区大小
bufferSize: 40960, //默认缓冲区大小
multicore: true,
batchRead: 8,
//batchRead: 8,
//discorse: true,
}
for _, option := range options {