Indy icon indicating copy to clipboard operation
Indy copied to clipboard

Socket limit for Select on Linux (memory corruption)

Open MaxRusov opened this issue 2 years ago • 14 comments

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

MaxRusov avatar Jan 27 '23 13:01 MaxRusov