https://bugs.openldap.org/show_bug.cgi?id=10190

          Issue ID: 10190
           Summary: Stack space exhaustion on windows due to FD_SETSIZE
           Product: OpenLDAP
           Version: unspecified
          Hardware: All
                OS: Windows
            Status: UNCONFIRMED
          Keywords: needs_review
          Severity: normal
          Priority: ---
         Component: libraries
          Assignee: b...@openldap.org
          Reporter: varunpa...@ucla.edu
  Target Milestone: ---

Setting FD_SETSIZE is only effective on Windows and BSD, and is
currently set to an unreasonable default of 4096. Each fd_set
is initialized with an array of file descriptors of this size;
this allocates 8*4096 bytes on 64-bit machines, which quickly
exhausts the small stack space on Windows.

This patch sets the default to a more reasonable value of 128;
the default value on Windows currently is 64.

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to