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

Fix the bug that heartbeat ping not working properly #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Szcnorya
Copy link

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