mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 02:16:16 +08:00
Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode
This commit is contained in:
commit
5377f1501d
@ -235,14 +235,14 @@ func (c *Client) writeBinaryMsg(resp Resp) error {
|
|||||||
}
|
}
|
||||||
encodedBuf := bufferPool.Get().([]byte)
|
encodedBuf := bufferPool.Get().([]byte)
|
||||||
resultBuf := bufferPool.Get().([]byte)
|
resultBuf := bufferPool.Get().([]byte)
|
||||||
encodeBuf, err := c.longConnServer.Encode(resp)
|
encodedBuf, err := c.longConnServer.Encode(resp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return utils.Wrap(err, "")
|
return utils.Wrap(err, "")
|
||||||
}
|
}
|
||||||
_ = c.conn.SetWriteDeadline(writeWait)
|
_ = c.conn.SetWriteDeadline(writeWait)
|
||||||
if c.isCompress {
|
if c.isCompress {
|
||||||
var compressErr error
|
var compressErr error
|
||||||
resultBuf, compressErr = c.longConnServer.Compress(encodeBuf)
|
resultBuf, compressErr = c.longConnServer.Compress(encodedBuf)
|
||||||
if compressErr != nil {
|
if compressErr != nil {
|
||||||
return utils.Wrap(compressErr, "")
|
return utils.Wrap(compressErr, "")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user