summaryrefslogtreecommitdiff
path: root/include/socketengine.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-07 13:47:26 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-07 13:47:26 +0200
commit5a6fd54f8fd217232f98804431928609580742bc (patch)
tree8bed7bfab1526fcd1ef691d2483cbb9400dcfd72 /include/socketengine.h
parent76f1ba946972dbff089b27d64748afc1c0d95c6a (diff)
Change the number reported by SocketEngine::GetMaxFds() to be informal
Do not exit if we can't determine it
Diffstat (limited to 'include/socketengine.h')
-rw-r--r--include/socketengine.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/socketengine.h b/include/socketengine.h
index 3a15e98c1..895457b89 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -346,8 +346,10 @@ public:
*/
static void ChangeEventMask(EventHandler* eh, int event_mask);
- /** Returns the highest file descriptor you may store in the socket engine
- * @return The maximum fd value
+ /** Returns the number of file descriptors reported by the system this program may use
+ * when it was started.
+ * @return If positive, the number of file descriptors that the system reported that we
+ * may use. Otherwise (<= 0) this number could not be determined.
*/
static int GetMaxFds() { return MAX_DESCRIPTORS; }