[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Buffered reading in LuaSocket..
- From: Duck <duck@...>
- Date: Tue, 18 Mar 2008 07:52:54 +1100 (EST)
>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...