Commit 8296ef87 authored by yuyu's avatar yuyu

Rem: session.SetRQLen

parent bc65ed07
...@@ -87,7 +87,6 @@ func newSessionCallback(session Session, handler *MessageHandler) error { ...@@ -87,7 +87,6 @@ func newSessionCallback(session Session, handler *MessageHandler) error {
session.SetMaxMsgLen(1024) session.SetMaxMsgLen(1024)
session.SetPkgHandler(&pkgHandler) session.SetPkgHandler(&pkgHandler)
session.SetEventListener(handler) session.SetEventListener(handler)
session.SetRQLen(4)
session.SetWQLen(32) session.SetWQLen(32)
session.SetReadTimeout(3e9) session.SetReadTimeout(3e9)
session.SetWriteTimeout(3e9) session.SetWriteTimeout(3e9)
......
...@@ -63,7 +63,6 @@ func InitialSession(session getty.Session) (err error) { ...@@ -63,7 +63,6 @@ func InitialSession(session getty.Session) (err error) {
session.SetName("hello") session.SetName("hello")
session.SetMaxMsgLen(128) session.SetMaxMsgLen(128)
// session.SetRQLen(1024)
session.SetWQLen(512) session.SetWQLen(512)
session.SetReadTimeout(time.Second) session.SetReadTimeout(time.Second)
session.SetWriteTimeout(5 * time.Second) session.SetWriteTimeout(5 * time.Second)
......
...@@ -43,7 +43,6 @@ func InitialSession(session getty.Session) (err error) { ...@@ -43,7 +43,6 @@ func InitialSession(session getty.Session) (err error) {
if ok { if ok {
session.SetName("hello") session.SetName("hello")
session.SetMaxMsgLen(128) session.SetMaxMsgLen(128)
// session.SetRQLen(1024)
session.SetWQLen(512) session.SetWQLen(512)
session.SetReadTimeout(time.Second) session.SetReadTimeout(time.Second)
session.SetWriteTimeout(5 * time.Second) session.SetWriteTimeout(5 * time.Second)
......
...@@ -163,9 +163,6 @@ type Session interface { ...@@ -163,9 +163,6 @@ type Session interface {
SetWriter(Writer) SetWriter(Writer)
SetCronPeriod(int) SetCronPeriod(int)
// Deprecated: don't use read queue.
SetRQLen(int)
SetWQLen(int) SetWQLen(int)
SetWaitTime(time.Duration) SetWaitTime(time.Duration)
// Deprecated: don't use SetTaskPool, move to endpoints layer. // Deprecated: don't use SetTaskPool, move to endpoints layer.
......
...@@ -3,7 +3,7 @@ module github.com/apache/dubbo-getty ...@@ -3,7 +3,7 @@ module github.com/apache/dubbo-getty
go 1.14 go 1.14
require ( require (
github.com/dubbogo/gost v1.9.6 github.com/dubbogo/gost v1.9.7
github.com/golang/snappy v0.0.1 github.com/golang/snappy v0.0.1
github.com/gorilla/websocket v1.4.2 github.com/gorilla/websocket v1.4.2
github.com/pkg/errors v0.9.1 github.com/pkg/errors v0.9.1
......
...@@ -299,9 +299,6 @@ func (s *session) SetCronPeriod(period int) { ...@@ -299,9 +299,6 @@ func (s *session) SetCronPeriod(period int) {
s.period = time.Duration(period) * time.Millisecond s.period = time.Duration(period) * time.Millisecond
} }
// Deprecated: don't use read queue.
func (s *session) SetRQLen(readQLen int) {}
// set @session's Write queue size // set @session's Write queue size
func (s *session) SetWQLen(writeQLen int) { func (s *session) SetWQLen(writeQLen int) {
if writeQLen < 1 { if writeQLen < 1 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment