mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-10-11 22:19:52 +00:00
- Move NORMAL_UDP_SIZE around.
This commit is contained in:
@@ -95,8 +95,6 @@
|
|||||||
#include "winrc/win_svc.h"
|
#include "winrc/win_svc.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** Size of an UDP datagram */
|
|
||||||
#define NORMAL_UDP_SIZE 512 /* bytes */
|
|
||||||
/** ratelimit for error responses */
|
/** ratelimit for error responses */
|
||||||
#define ERROR_RATELIMIT 100 /* qps */
|
#define ERROR_RATELIMIT 100 /* qps */
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
- Fix #1514: [FR] do-not-query-localhost is not including
|
- Fix #1514: [FR] do-not-query-localhost is not including
|
||||||
0.0.0.0/8 and ‘::’ in the man page.
|
0.0.0.0/8 and ‘::’ in the man page.
|
||||||
- Fix #1513: [FR] Size of harden-large-queries in the man page.
|
- Fix #1513: [FR] Size of harden-large-queries in the man page.
|
||||||
|
- Move NORMAL_UDP_SIZE around.
|
||||||
|
|
||||||
21 September 2026: Yorgos
|
21 September 2026: Yorgos
|
||||||
- Merge #1510 from Andy Warner: Move unlink of temp file to before
|
- Merge #1510 from Andy Warner: Move unlink of temp file to before
|
||||||
|
|||||||
+2
-2
@@ -6312,8 +6312,8 @@ comm_point_create_http_handler(struct comm_base *base,
|
|||||||
|
|
||||||
c->http_min_version = http_version_2;
|
c->http_min_version = http_version_2;
|
||||||
c->http2_stream_max_qbuffer_size = bufsize;
|
c->http2_stream_max_qbuffer_size = bufsize;
|
||||||
if(harden_large_queries && bufsize > 512)
|
if(harden_large_queries && bufsize > NORMAL_UDP_SIZE)
|
||||||
c->http2_stream_max_qbuffer_size = 512;
|
c->http2_stream_max_qbuffer_size = NORMAL_UDP_SIZE;
|
||||||
c->http2_max_streams = http_max_streams;
|
c->http2_max_streams = http_max_streams;
|
||||||
if(!(c->http_endpoint = strdup(http_endpoint))) {
|
if(!(c->http_endpoint = strdup(http_endpoint))) {
|
||||||
log_err("could not strdup http_endpoint");
|
log_err("could not strdup http_endpoint");
|
||||||
|
|||||||
@@ -118,6 +118,9 @@ typedef int comm_point_callback_type(struct comm_point*, void*, int,
|
|||||||
/** for doq, the maximum dcid length, in ngtcp2 it is 20. */
|
/** for doq, the maximum dcid length, in ngtcp2 it is 20. */
|
||||||
#define DOQ_MAX_CIDLEN 24
|
#define DOQ_MAX_CIDLEN 24
|
||||||
|
|
||||||
|
/** Size of an UDP datagram */
|
||||||
|
#define NORMAL_UDP_SIZE 512 /* bytes */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A communication point dispatcher. Thread specific.
|
* A communication point dispatcher. Thread specific.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user