Indy
Indy copied to clipboard
Socket limit for Select on Linux (memory corruption)
TIdSocketListVCLPosix.Add checks Count < FD_SETSIZE. It is incorrect in Posix. Need to check: AHandle < FD_SETSIZE.
_FD_SET causes memory corruption if AHandle > 1024.
It is advisable to replace select
to poll
in Linux