Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对于request请求,服务端返回response消息,无法进行压缩 #35

Closed
s0oo opened this issue Apr 26, 2015 · 4 comments
Closed

Comments

@s0oo
Copy link

s0oo commented Apr 26, 2015

No description provided.

@s0oo s0oo changed the title 对于request请求,服务端返回的/response的消息,是不是无法进行protobuf压缩 对于request请求,服务端返回response消息,无法进行压缩 Apr 26, 2015
@s0oo
Copy link
Author

s0oo commented Apr 26, 2015

比如在chatofpomelo中,在服务端的serverProtos.json中添加:
"gate.gateHandler.queryEntry": {
"required uInt32 code": 1,
"required string host": 2,
"required uInt32 port": 3
}
客户端请求时,服务端会发送压缩后的消息。
gate.gateHandler.queryEntry = function(msg, session, next) {
next(null, {
code: 200,
host: res.host,
port: res.clientPort
});
};
然后,客户端会收到压缩过的消息,无法解析。
在C#的客户端中是可以解析的。

@cynron
Copy link
Member

cynron commented Apr 27, 2015

#23 ,这个问题不打算修了

@cynron cynron closed this as completed Apr 27, 2015
@frankqianghe
Copy link

服务端返回protobuf压缩的response,客户端无法解析,如果服务器端主动推送的信息,经过protobuf压缩,客户端是否可以解析

@Jennal
Copy link
Contributor

Jennal commented Apr 30, 2015

@cynron 这个问题会不会拖太久了?到现在都没有解决的方案吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants