Skip to content

Commit

Permalink
Failure tu listen on port 843 does not break the LuaNode server anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
ignacio committed Jun 29, 2011
1 parent 2cc974c commit 50551b7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion socket-io/transports/flashsocket.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,16 @@ function Flashsocket.init (listener)
--socket:destroy()
end
end)


-- swallow the error
netserver:on("error", function(self, a, b, c)
listener.options.log([[Your LuaNode instance does not have root privileges.
This means that the flash XML policy file will be
served inline instead of on port 843. This will slow
connection time slightly]])
netserver:close()
end)

--try {
netserver:listen(843)
--} catch(e){
Expand Down

0 comments on commit 50551b7

Please sign in to comment.