2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Optimise TLS stream for small write size (>= 512 bytes)

This commit changes TLS stream behaviour in such a way, that it is now
optimised for small writes. In the case there is a need to write less
or equal to 512 bytes, we could avoid calling the memory allocator at
the expense of possibly slight increase in memory usage. In case of
larger writes, the behviour remains unchanged.
This commit is contained in:
Artem Boldariev
2021-08-02 17:15:13 +03:00
parent e301e1e3b8
commit e639957b58
2 changed files with 19 additions and 7 deletions

View File

@@ -754,6 +754,7 @@ typedef struct isc_nmsocket_tls_send_req {
void *cbarg;
isc_nmhandle_t *handle;
bool finish;
uint8_t smallbuf[512];
} isc_nmsocket_tls_send_req_t;
typedef enum isc_http_request_type {