]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] session: try to emit a 500 response on memory allocation errors
authorWilly Tarreau <w@1wt.eu>
Fri, 22 Jul 2011 15:36:27 +0000 (17:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 24 Jul 2011 14:12:25 +0000 (16:12 +0200)
commit2b15492a751f6b3191c324c4d6a92e51f90273f0
tree858b9650972dafee3239ea8e55a836af2d3ee8db
parent9bd0d744efdcd6bb9c910f50af9768e136d830e2
[MINOR] session: try to emit a 500 response on memory allocation errors

When we fail to create a session because of memory shortage, let's at
least try to send a 500 message directly on the socket. Even if we don't
have any buffers left, the kernel's orphans management will take care of
delivering the message as long as there are socket buffers left.
src/session.c