Feat/update geminio (#88)

* feat: bump up buffer size

* feat: update geminio
This commit is contained in:
Austin Zhai
2025-09-25 08:49:30 +08:00
committed by GitHub
parent 790be256e1
commit 92dc12b7c6
4 changed files with 6 additions and 4 deletions

View File

@@ -247,7 +247,8 @@ func (end *clusterServiceEnd) newServiceEnd(addr string) (*serviceEnd, error) {
OptionServiceName(end.serviceOption.service),
OptionServiceReceiveTopics(end.serviceOption.topics),
OptionServiceTimer(end.serviceOption.tmr),
OptionServiceID(end.serviceOption.serviceID))
OptionServiceID(end.serviceOption.serviceID),
OptionServiceBufferSize(end.serviceOption.readBufferSize, end.serviceOption.writeBufferSize))
if err != nil {
return nil, err
}

2
go.mod
View File

@@ -14,7 +14,7 @@ require (
github.com/nats-io/nats.go v1.33.1
github.com/nsqio/go-nsq v1.1.0
github.com/rabbitmq/amqp091-go v1.9.0
github.com/singchia/geminio v1.1.7-rc.1
github.com/singchia/geminio v1.1.8
github.com/singchia/go-timer/v2 v2.2.1
github.com/singchia/joy4 v0.0.0-20240621074108-53a2b0132ec6
github.com/soheilhy/cmux v0.1.5

4
go.sum
View File

@@ -146,8 +146,8 @@ github.com/redis/go-redis/v9 v9.5.5 h1:51VEyMF8eOO+NUHFm8fpg+IOc1xFuFOhxs3R+kPu1
github.com/redis/go-redis/v9 v9.5.5/go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M=
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
github.com/singchia/geminio v1.1.7-rc.1 h1:JZxEOHqN1oUt/RnJtzff37Iap8pOmgr1zXM7B5ZUHLo=
github.com/singchia/geminio v1.1.7-rc.1/go.mod h1:LkgZj4Ddja97vP7NWQk7TffFLZAosHe/PZtyW8vnFBQ=
github.com/singchia/geminio v1.1.8 h1:jsPgJSWoQpzupGVziFtqdDKLBs6lPv8i0SBzmGcr4ZA=
github.com/singchia/geminio v1.1.8/go.mod h1:LkgZj4Ddja97vP7NWQk7TffFLZAosHe/PZtyW8vnFBQ=
github.com/singchia/go-timer/v2 v2.0.3/go.mod h1:PgkEQc6io8slCUiT5rHzWKU4/P2HXHWk3WWfijZXAf4=
github.com/singchia/go-timer/v2 v2.2.1 h1:gJucmL99fkuNzGk2AfNPFpa1X3/4+aGO21KkjFAG624=
github.com/singchia/go-timer/v2 v2.2.1/go.mod h1:PgkEQc6io8slCUiT5rHzWKU4/P2HXHWk3WWfijZXAf4=

View File

@@ -146,6 +146,7 @@ func (em *edgeManager) handleConn(conn net.Conn) error {
// stream handler
opt.SetAcceptStreamFunc(em.acceptStream)
opt.SetClosedStreamFunc(em.closedStream)
opt.SetBufferSize(8192, 8192)
end, err := server.NewEndWithConn(conn, opt)
if err != nil {
klog.Warningf("edge manager geminio server new end err: %s, addr: %s", err, conn.RemoteAddr())