Archived

This forum has been archived. Please start a new discussion on GitHub.

ICE/win32 max connections is 64!!

Hi

When more than 64 clients connected to an object in the server, some of the clients were simply not working at all. Then i looked into the ice code, and it looks like its using 'select' on windows for handling network events.

Thats a problem because 'fd_set' in windows has a max size of only 64.

How do i solve the problem, i want to have 100s of clients connecting to my server object.

Thanks in advance!!
Regards
Sreeram

Comments

  • Add the following to include/IceUtil/Config.h, before Windows.h is included:

    #define FD_SETSIZE 1024

    Then you can have up to 1024 simultaneous connections.

    If you need even more than that, then it might be advisable to activate connection management, so that idle connections are closed and re-opened on demand.