From 6b4a68e0e83882bb66b288533220a8514b841f2f Mon Sep 17 00:00:00 2001 From: Thomas Harning Jr Date: Sat, 1 Sep 2007 00:24:11 -0400 Subject: Refactored luaevent.lua (unlearned borked fairness, collapsing useless code). luaevent.lua: * Unlearned fairness since it was likely to be broken... fairness will need to be implemented at app-level where it should be. * Collapsed duplicate code into a local function testClient.lua: * Added a completion message (since the test was so quick I thought it was broken) --- test/testClient.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/testClient.lua') diff --git a/test/testClient.lua b/test/testClient.lua index fbbcf87..871207a 100644 --- a/test/testClient.lua +++ b/test/testClient.lua @@ -12,8 +12,9 @@ local function func() sock = luaevent.wrap(sock) print(assert(sock:connect("localhost", 20000))) for i = 1, 100 do assert(sock:send("Greet me ")) assert(sock:receive(10)) collectgarbage() end + print("COMPLETE") end luaevent.addthread(func) -luaevent.loop() \ No newline at end of file +luaevent.loop() -- cgit v1.2.3