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 a corrupted server that sends messages with incorrect length, which can cause memory exhaustion. The default value is 0. If ma
(maxBodyLen int)
| 471 | // The default value is 0. |
| 472 | // If maxBodyLen is 0, then no maximum is enforced. |
| 473 | func (f *Frontend) SetMaxBodyLen(maxBodyLen int) { |
| 474 | f.maxBodyLen = maxBodyLen |
| 475 | } |
no outgoing calls