lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 22-Jan-05, at 4:52 PM, duck wrote:

Recently, it was suggested that select()-driven TCP servers could never
scale to many 1000s of connections because of the linear cost of searching the select array each time a non-zero number of connections had some data

In the real world, is this really an intractable problem? With very many connections, surely each select() will identify many connections with data available, thus amortising the cost of scanning the select array over many


The problem is that select() requires the app to do a lot of work to set up all the FD_SETs and scan them.


Jeff Koftinoff <>

Attachment: PGP.sig
Description: This is a digitally signed message part