[Vortex] Can't connect more than 64 clients to a server
Francis Brosnan Blazquez
francis at aspl.es
Fri Oct 27 08:57:53 CEST 2006
El jue, 26-10-2006 a las 15:17 -0300, Ignacio Burgueño escribió:
> Hi everyone.
Hi Ignacio,
> I'm testing Vortex on Windows and found out that I can't
> connect more than 64 clients to a single server. I didn't look at the
> sources yet but it seems an issue with the max. number of handles
> that
> can be waited on (either with a select or a WaitForMultipleObjects
> call)
> which is also 64.
You are right. Vortex Windows Installer comes with no modification to
the number of descriptors that can handle select(2) call. Default value
provided is 64 connections.
> Is there a workaround for this?
Sure. But requires to recompile vortex library to expand that limit.
Inside vortex.h file just after "#include <axl.h>" you must set the
following to the desired value:
#define FD_SETSIZE 2048
That is, it must be defined before being included winsock2.h (or
sys/select.h under linux/unix platforms).
We have planned to include an alternative approach making vortex library
to support as many connections as configured at runtime (not compilation
required), but, until now, there wasn't interest on this.
At the end, we know the amount of resources that could offer the server,
so setting the maximum set of connections to be handled is a good
practice to avoid DOS.
Cheers!
> Regards,
> Ignacio Burgueño
>
--
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.
More information about the Vortex
mailing list