diff options
author | Valentin Bartenev <vbart@nginx.com> | 2020-08-05 14:55:34 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2020-08-05 14:55:34 +0300 |
commit | 2b53c7bbbd518131b46867343caaad18534ebd8f (patch) | |
tree | 549ddf04ba00def255db7a04685d309fbb2fd283 /src/nxt_h1proto.c | |
parent | b28b4459b0899cb8357df5f6c1e904fd1a34ebe3 (diff) | |
download | unit-2b53c7bbbd518131b46867343caaad18534ebd8f.tar.gz unit-2b53c7bbbd518131b46867343caaad18534ebd8f.tar.bz2 |
Fixed nxt_conn_accept_alloc() behavior in low memory conditions.
Earlier, if nxt_mp_create() failed to allocate memory while accepting a new
connection, the resulting NULL was subsequently passed to nxt_mp_destroy(),
crashing the process.
More, if nxt_mp_create() was successful but nxt_sockaddr_cache_alloc() failed,
the connection object wasn't destroyed properly, leaving the connection counter
in an inconsistent state. Repeated, this condition lowered the connection
capacity of the process and could eventually prevent it from accepting
connections altogether.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions