Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-8612

Windows sockets overflow fd_set

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.4.0-rc1
    • Affects Version/s: 2.4.0-rc0
    • Component/s: Networking
    • None
    • Environment:
      Windows
    • Windows

      On Windows, I set FD_SETSIZE to 1024. However, this is not large enough, and it's hard to say how large we need to set it other than going with 32767. The socket() function does not necessarily return numbers in sequential order like on Unix.
      We could use WSAPoll() but this function is not supported on XP.
      We could use accept() but we would need a different way to update the listen timer.

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: