this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

clarify buffer size as ~10 kbyte

Measured actual firehose, and most #commit messages are between 4k and
8k bytes. 10k covers almost all events, without being too much
over-allocation memory use.

+2 -2
+2 -2
cmd/relay/relay/broadcast.go
··· 55 55 } 56 56 57 57 var wsUpgrader = websocket.Upgrader{ 58 - ReadBufferSize: 10 << 10, 59 - WriteBufferSize: 10 << 10, 58 + ReadBufferSize: 10_000, 59 + WriteBufferSize: 10_000, 60 60 } 61 61 62 62 // Main HTTP request handler for clients connecting to the firehose (com.atproto.sync.subscribeRepos)