mirror of
https://github.com/NLnetLabs/domain.git
synced 2026-09-30 05:34:54 +02:00
Enforce dgram max response size limit. (#398)
This commit is contained in:
@@ -118,7 +118,7 @@ impl Config {
|
||||
/// [RFC 6891]:
|
||||
/// https://datatracker.ietf.org/doc/html/rfc6891#section-6.2.5
|
||||
pub fn set_max_response_size(&mut self, value: Option<u16>) {
|
||||
self.max_response_size = value;
|
||||
self.max_response_size = value.map(|v| MAX_RESPONSE_SIZE.limit(v));
|
||||
}
|
||||
|
||||
/// Sets the time to wait for a complete message to be written to the
|
||||
|
||||
Reference in New Issue
Block a user