From 699acd8d54bd685b135d3a8e758d05dd0802b820 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 3 Jun 2015 13:56:01 -0400 Subject: Validate the open file limit when creating a socket Fixes #16288 Signed-off-by: David Goulet --- changes/bug16288 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 changes/bug16288 (limited to 'changes/bug16288') diff --git a/changes/bug16288 b/changes/bug16288 new file mode 100644 index 0000000000..7ddf615d5a --- /dev/null +++ b/changes/bug16288 @@ -0,0 +1,6 @@ + o Major bugfixes (open file limit): + - The max open file limit wasn't checked before calling + tor_accept_socket_nonblocking() which made tor go beyond the open + file limit set previously. With this fix, before opening a new socket, + tor validates the open file limit just before and if the max has been + reached, return EMFILE.; Fixes #16288; bugfix on tor-0.1.1.1-alpha~74. -- cgit v1.2.3-54-g00ecf