Live view disconnections fix (v1) #45
Closed
+37
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[Issue #27]
Analysis
event.CLIENT_HEARTBEATin websockets handlerevent.MEMBER_CONNECT&event.MEMBER_DISCONNECTto the client every few seconds to keepalive. seems to work :)kernel_debug_peer.mp4
both sessions have steady input.
left session has peer disconnect error 3x in the recorded interval.
right session, where neko sends new event to client every few secs (member notifications), has no peer disconnect error in the interval.
Fix
neko/chromium:3.0.6-kernel-v1.1) sets a reduced heartbeat interval.neko.yaml, sending dummyevent.CHAT_MESSAGEalongsideevent.CLIENT_HEARTBEATfrom client, as neko handler replies to the event.event.SYSTEM_HEARTBEATin the neko src, will use it instead of theevent.CHAT_MESSAGEworkaround later if the approach works when deployed)this could fix live view peer disconnections.
Notes
UKC_TOKENhas <8gb required memory quotas.