Skip to content
This repository was archived by the owner on Nov 10, 2020. It is now read-only.

Fix the bug that heartbeat ping not working properly#65

Open
Szcnorya wants to merge 1 commit into
zentures:masterfrom
Szcnorya:master
Open

Fix the bug that heartbeat ping not working properly#65
Szcnorya wants to merge 1 commit into
zentures:masterfrom
Szcnorya:master

Conversation

@Szcnorya
Copy link
Copy Markdown

I found this bug when I use modified surgemq in a emulator to profiling GoQuic with respect to TCP. (It has been a dozen of days since I do this modification so I forgot some details...)

The bug is functiuon processAcked(ackq *sessions.Ackqueue) in "process.go" will always try to decode the MsgBuf and will always fail on Ping/PingAck message because it is not given one during initialization. The high level code can not get any pingback semantic though the low level code actually send PING.

I fix this by attach a msgBuf with the message.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant