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
ee832003
Commit
ee832003
authored
Oct 12, 2016
by
alexstocks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix websocket write error
parent
2a319e56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
conn.go
conn.go
+1
-1
dev.list
dev.list
+5
-0
version.go
version.go
+3
-3
No files found.
conn.go
View file @
ee832003
...
...
@@ -180,7 +180,7 @@ func (this *gettyWSConn) read() ([]byte, error) {
func
(
this
*
gettyWSConn
)
write
(
p
[]
byte
)
error
{
// atomic.AddUint32(&this.writeCount, 1)
atomic
.
AddUint32
(
&
this
.
writeCount
,
(
uint32
)(
len
(
p
)))
return
this
.
conn
.
WriteMessage
(
len
(
p
)
,
p
)
return
this
.
conn
.
WriteMessage
(
websocket
.
BinaryMessage
,
p
)
}
// close websocket connection
...
...
dev.list
View file @
ee832003
...
...
@@ -11,6 +11,11 @@
## develop history ##
---
- 2016/10/11
> 1 fix bug: use websocket.BinaryMessage in conn.go:(gettyWSConn)write
>
> 2 version: 0.4.02
- 2016/10/10
> 1 delete session.go:Session{errFlag} to invoke codec.go:EventListener{OnClose&OnError} both when got a error
>
...
...
version.go
View file @
ee832003
...
...
@@ -10,9 +10,9 @@
package
getty
const
(
Version
=
"0.4.0
1
"
DATE
=
"2016/10/1
0
"
Version
=
"0.4.0
2
"
DATE
=
"2016/10/1
2
"
GETTY_MAJOR
=
0
GETTY_MINOR
=
4
GETTY_BUILD
=
1
GETTY_BUILD
=
2
)
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