Comments (2)
和这一段 必须先取一下 * 开头的变量也有关系 但真正的redis 并不需要先输入* 。应该是这点区别吧
`
if !client.sending.Get() {
if msg[0] == '*' {
expectedLine, err := strconv.ParseUint(string(msg[1:len(msg)-2]), 10, 32)
if err != nil {
client.conn.Write([]byte("=====UnknownErrReplyBytes" + err.Error()))
continue
}
client.waitingReply.Add(1)
client.sending.Set(true)
client.expectedArgsCount = uint32(expectedLine)
client.receivedCount = 0
client.args = make([][]byte, expectedLine)
} else {
//TODO text protocol
}
}
`
from godis.
哦哦 我理解错了。后面有解决的方式~~~ 打扰了 大神
from godis.
Related Issues (20)
- 在阅读源码时遇到的一些问题 HOT 8
- 增加ARM版本支持 HOT 3
- support scan HOT 3
- dump rdb file failed Unknown string encode type HOT 3
- Optimize Logger 优化日志
- Raft Cluster Support Failover
- 键过期后,仍然存在Keys列表中 HOT 1
- datastruct/dict/concurrent.go Get and GetWithLock HOT 2
- godis服务接受一个客户端连接失败后,会发信号通知godis服务shutdown,似乎不太合理。 HOT 1
- 请问这个项目的初衷是? HOT 8
- why release lock reverse order in RWUnLocks HOT 1
- considere more redis-style IO model? HOT 4
- 不支持redis的那各key分组设置吗? HOT 2
- 有没有client api HOT 2
- support ziplist HOT 1
- georadius是错误的
- 当前兼容的redis是哪儿个版本呢? HOT 1
- Redis执行指令时候不是单线程执行的吗,为什么还要锁? HOT 4
- raft persist error HOT 1
- 关于ConcurrentDict的实现问题。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godis.