This website works better with JavaScript.
Home
Explore
Help
Sign In
yuxh
/
gearman-go
Watch
1
Star
0
Fork
1
Code
Issues
0
Pull Requests
0
Releases
6
Wiki
Activity
Browse Source
Merge pull request
#48
from gbarr/large-packet-read
Avoid read channel corruption when response size > bufferSize
tags/0.2
Xing
9 years ago
parent
1f303d8145
d82da8fd71
commit
ccb6f4a24f
2 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
client/client.go
+1
-1
client/common.go
+ 1
- 0
client/client.go
View File
@@ -104,6 +104,7 @@ ReadLoop:
}
if len(leftdata) > 0 { // some data left for processing
data = append(leftdata, data...)
leftdata = nil
}
for {
l := len(data)
+ 1
- 1
client/common.go
View File
@@ -5,7 +5,7 @@ const (
// queue size
queueSize = 8
// read buffer size
bufferSize =
1024
bufferSize =
8192
// min packet length
minPacketLength = 12
Write
Preview
Loading…
Cancel
Save