diff options
author | Thomas Harning Jr <harningt@gmail.com> | 2007-09-01 00:24:11 -0400 |
---|---|---|
committer | Thomas Harning Jr <harningt@gmail.com> | 2007-09-01 00:24:11 -0400 |
commit | 6b4a68e0e83882bb66b288533220a8514b841f2f (patch) | |
tree | b4c5abb01a8a04f99b810d81daf63941b6fde9f3 /test | |
parent | df383f95f4044561e6f675772a9e55f81ab3cb5d (diff) | |
download | luaevent-prosody-6b4a68e0e83882bb66b288533220a8514b841f2f.tar.gz luaevent-prosody-6b4a68e0e83882bb66b288533220a8514b841f2f.zip |
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)
Diffstat (limited to 'test')
-rw-r--r-- | test/testClient.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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() |