Commit cdc621b
authored
persist/pubsub: set unlimited decoding message size everywhere (#35934)
This PR sets the `max_decoding_message_size` for all pubsub servers and
clients to `usize::MAX`, to avoid pubsub errors and resulting reconnects
caused by participants not being able to decode received messages.
There was already code in place to do this for a subset of the pubsub
servers created (introduced in
#21034), but it was
(likely due to oversight) not applied to all of them, nor to clients.
Note that we don't need to set `max_encoding_message_size`, as it
already defaults to `usize::MAX`.
### Motivation
We observed the decoding size limit to cause pubsub reconnects, which in
turn tickles a connection leak. This change doesn't fix the leak yet but
makes it less likely that we hit it.1 parent 4218b69 commit cdc621b
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
| |||
324 | 330 | | |
325 | 331 | | |
326 | 332 | | |
327 | | - | |
| 333 | + | |
328 | 334 | | |
329 | 335 | | |
330 | 336 | | |
| |||
1064 | 1070 | | |
1065 | 1071 | | |
1066 | 1072 | | |
1067 | | - | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
1068 | 1077 | | |
1069 | 1078 | | |
1070 | 1079 | | |
| |||
1077 | 1086 | | |
1078 | 1087 | | |
1079 | 1088 | | |
1080 | | - | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1081 | 1093 | | |
1082 | 1094 | | |
1083 | 1095 | | |
| |||
0 commit comments