diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-12-13 14:30:59 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-12-13 14:30:59 +0000 |
commit | f0b2f4177166520469599a9ee9a28a0314b1f26b (patch) | |
tree | e41e3042bd1cb955a8d9299626a986f8a83499d1 /net/server.lua | |
parent | 3f57f03f11e1200e116d1d6e681be0160175f6c8 (diff) | |
download | prosody-f0b2f4177166520469599a9ee9a28a0314b1f26b.tar.gz prosody-f0b2f4177166520469599a9ee9a28a0314b1f26b.zip |
Make wraptcpclient set timeout to 0, and add it to the list of exported functions from server.lua
Diffstat (limited to 'net/server.lua')
-rw-r--r-- | net/server.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/server.lua b/net/server.lua index 5c129753..4e5ec366 100644 --- a/net/server.lua +++ b/net/server.lua @@ -587,6 +587,8 @@ wraptcpclient = function( listener, socket, ip, serverport, clientport, mode ) local eol, fatal_send_error + socket:settimeout(0); + local rstat, sstat = 0, 0 --// local import of socket methods //-- @@ -833,5 +835,6 @@ return { stats = stats, closeall = closeall, addtimer = addtimer, + wraptcpclient = wraptcpclient, wraptlsclient = wraptlsclient, } |