Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
getty
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
getty
Commits
8296ef87
Commit
8296ef87
authored
Dec 02, 2020
by
yuyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rem: session.SetRQLen
parent
bc65ed07
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
10 deletions
+1
-10
client_test.go
client_test.go
+0
-1
config.go
demo/hello/tcp/config.go
+0
-1
config.go
demo/hello/tls/config.go
+0
-1
getty.go
getty.go
+0
-3
go.mod
go.mod
+1
-1
session.go
session.go
+0
-3
No files found.
client_test.go
View file @
8296ef87
...
...
@@ -87,7 +87,6 @@ func newSessionCallback(session Session, handler *MessageHandler) error {
session
.
SetMaxMsgLen
(
1024
)
session
.
SetPkgHandler
(
&
pkgHandler
)
session
.
SetEventListener
(
handler
)
session
.
SetRQLen
(
4
)
session
.
SetWQLen
(
32
)
session
.
SetReadTimeout
(
3e9
)
session
.
SetWriteTimeout
(
3e9
)
...
...
demo/hello/tcp/config.go
View file @
8296ef87
...
...
@@ -63,7 +63,6 @@ func InitialSession(session getty.Session) (err error) {
session
.
SetName
(
"hello"
)
session
.
SetMaxMsgLen
(
128
)
// session.SetRQLen(1024)
session
.
SetWQLen
(
512
)
session
.
SetReadTimeout
(
time
.
Second
)
session
.
SetWriteTimeout
(
5
*
time
.
Second
)
...
...
demo/hello/tls/config.go
View file @
8296ef87
...
...
@@ -43,7 +43,6 @@ func InitialSession(session getty.Session) (err error) {
if
ok
{
session
.
SetName
(
"hello"
)
session
.
SetMaxMsgLen
(
128
)
// session.SetRQLen(1024)
session
.
SetWQLen
(
512
)
session
.
SetReadTimeout
(
time
.
Second
)
session
.
SetWriteTimeout
(
5
*
time
.
Second
)
...
...
getty.go
View file @
8296ef87
...
...
@@ -163,9 +163,6 @@ type Session interface {
SetWriter
(
Writer
)
SetCronPeriod
(
int
)
// Deprecated: don't use read queue.
SetRQLen
(
int
)
SetWQLen
(
int
)
SetWaitTime
(
time
.
Duration
)
// Deprecated: don't use SetTaskPool, move to endpoints layer.
...
...
go.mod
View file @
8296ef87
...
...
@@ -3,7 +3,7 @@ module github.com/apache/dubbo-getty
go 1.14
require (
github.com/dubbogo/gost v1.9.
6
github.com/dubbogo/gost v1.9.
7
github.com/golang/snappy v0.0.1
github.com/gorilla/websocket v1.4.2
github.com/pkg/errors v0.9.1
...
...
session.go
View file @
8296ef87
...
...
@@ -299,9 +299,6 @@ func (s *session) SetCronPeriod(period int) {
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
func
(
s
*
session
)
SetWQLen
(
writeQLen
int
)
{
if
writeQLen
<
1
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment