lua-users home
lua-l archive

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


>Better yet would be to use something
>similar to copas 

Problem with COPAS is that it is superb -- but only if you don't want to 
do anything in real time with the data you receive :-)

Because the central select() in COPAS cannot unify all possible blocking 
I/O in your program (because LuaSocket's select() is limited to waiting on 
network sockets only), it can be risky for many sorts of network 
server...almost anything you do with the received data, such as writing it 
to disk, committing it to some non-network-based IPC system, or using it 
in something like a database query, is likely to block everything...