aboutsummaryrefslogtreecommitdiff
path: root/etc/forward.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2005-11-22 08:33:29 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2005-11-22 08:33:29 +0000
commitd55a5826e81136a9ecf65c4cd407152a56684dc2 (patch)
tree109ad44c75cee890ad5e98583e12b15b5e65a18e /etc/forward.lua
parenta2b780bf7a78c66d54a248fa99b5fc862c12a127 (diff)
downloadluasocket-d55a5826e81136a9ecf65c4cd407152a56684dc2.tar.gz
luasocket-d55a5826e81136a9ecf65c4cd407152a56684dc2.tar.bz2
luasocket-d55a5826e81136a9ecf65c4cd407152a56684dc2.zip
Few tweaks in installation, some missing files, etc.
Diffstat (limited to 'etc/forward.lua')
-rw-r--r--etc/forward.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/forward.lua b/etc/forward.lua
index eac98ae..9073ac4 100644
--- a/etc/forward.lua
+++ b/etc/forward.lua
@@ -17,10 +17,10 @@ local function move(foo, bar)
17 live = data or error == "timeout" 17 live = data or error == "timeout"
18 data = data or partial 18 data = data or partial
19 local result, error = bar:send(data) 19 local result, error = bar:send(data)
20 if not live or not result then 20 if not live or not result then
21 foo:close() 21 foo:close()
22 bar:close() 22 bar:close()
23 break 23 break
24 end 24 end
25 end 25 end
26end 26end
@@ -51,7 +51,7 @@ for i, v in ipairs(arg) do
51 handler:start(function() 51 handler:start(function()
52 move(client, peer) 52 move(client, peer)
53 end) 53 end)
54 -- afte starting new handler, enter in loop sending data from 54 -- afte starting new handler, enter in loop sending data from
55 -- peer to client 55 -- peer to client
56 move(peer, client) 56 move(peer, client)
57 end) 57 end)