SetMaxBodyLen sets the maximum length of a message body in octets. If a message body exceeds this length, Receive will return an error. This is useful for protecting against malicious clients that send large messages with the intent of causing memory exhaustion. The default value is 0. If maxBodyLen
(maxBodyLen int)
| 295 | // The default value is 0. |
| 296 | // If maxBodyLen is 0, then no maximum is enforced. |
| 297 | func (b *Backend) SetMaxBodyLen(maxBodyLen int) { |
| 298 | b.maxBodyLen = maxBodyLen |
| 299 | } |
no outgoing calls