Hercules Elf Bot - Dec 13, 2007 7:22
Originally posted by [b]Itakou[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=604
Just notifying the developers for other server owners,
The current socket doesn't really work for windows. Windows does not hand out fd_setsize like Linux does, as a result, a fd_setsize of 4095 can only handle around 400 players before it starts giving warning messages and refusing any addition connections. Increasing the fd_setsize isn't really a real solution, hope you developers can take a look.
Ultramage provided me a temp fix months ago. Basically adding a MAX_SOCKET const set at extremely high values (I use 25000 for 2000 players) and replacing all instances of fd_setsize in socket.c with the new constant.
This is tested and verified. I guess no one ever posted about this because there doesn't seem to exist another high population server run under Windows.