Page MenuHomePhabricator

Hold recent messages in Aphlict so they can be replayed after clients reconnect
ClosedPublic

Authored by epriestley on Apr 17 2017, 8:49 PM.
Tags
None
Referenced Files
F14834158: D17707.id42599.diff
Thu, Jan 30, 2:17 PM
Unknown Object (File)
Sun, Jan 26, 11:54 PM
Unknown Object (File)
Tue, Jan 21, 3:38 PM
Unknown Object (File)
Tue, Jan 21, 12:51 PM
Unknown Object (File)
Thu, Jan 16, 12:46 PM
Unknown Object (File)
Wed, Jan 15, 4:12 PM
Unknown Object (File)
Sat, Jan 11, 11:21 AM
Unknown Object (File)
Fri, Jan 3, 2:07 PM
Subscribers
None

Details

Summary

Ref T12563. Before broadcasting messages from the server, store them in a history buffer.

A future change will let clients retrieve them.

Test Plan
  • Used the web frontend to look at the buffer, reloaded over time, sent messages. Saw buffer size go up as I sent messages and fall after 60 seconds.
  • Set size to 4 messages, sent a bunch of messages, saw the buffer size max out at 4 messages.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable