AlexStocks / getty

a netty like asynchronous network I/O library based on tcp/udp/websocket; a bidirectional RPC framework based on JSON/Protobuf; a microservice framework based on zookeeper/etcd
Apache License 2.0
886 stars 184 forks source link

Bug: webSocketConn 疑似缺失已读字节数累加 #30

Closed chinaerserver closed 4 years ago

chinaerserver commented 4 years ago

connection.go中 func (w *gettyWSConn) recv() ([]byte, error){}方法内疑似缺失 atomic.AddUint32(&conn.readBytes, uint32(len(b))) 累加wsConn中对readBytes的计数

AlexStocks commented 4 years ago

@chinaerserver pls comment this pr https://github.com/AlexStocks/getty/pull/31 . If there is no comment/error from you, I will merge it 3 days later.