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
2770bf2d
Commit
2770bf2d
authored
Sep 10, 2016
by
alexstocks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set write timeout in session.go:(Session)WritePkg
parent
848c9843
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
README.md
README.md
+3
-1
session.go
session.go
+2
-1
No files found.
README.md
View file @
2770bf2d
...
...
@@ -15,7 +15,9 @@
>
> 2 delete session.go:(Session)handlePackage Last clause
>
> 3 version: 0.3.07
> 3 set write timeout in session.go:(Session)WritePkg
>
> 4 version: 0.3.07
-
2016/09/08
> 1 rewrite session.go:(Session)handlePackage() error handle logic
...
...
session.go
View file @
2770bf2d
...
...
@@ -311,7 +311,8 @@ func (this *Session) WritePkg(pkg interface{}) error {
case
this
.
wQ
<-
pkg
:
break
// for possible gen a new pkg
default
:
// default:
case
time
.
After
(
this
.
wDeadline
)
:
log
.
Warn
(
"%s, [session.WritePkg] wQ{len:%d, cap:%d}"
,
this
.
Stat
(),
len
(
this
.
wQ
),
cap
(
this
.
wQ
))
return
ErrSessionBlocked
}
...
...
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