Software /
code /
prosody
Comparison
net/server.lua @ 620:9f9f69d67edb
Make wraptcpclient set timeout to 0, and add it to the list of exported functions from server.lua
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 13 Dec 2008 14:30:59 +0000 |
parent | 581:23b9cd1206ba |
child | 630:e9336adb66e5 |
comparison
equal
deleted
inserted
replaced
619:6d720aba51cb | 620:9f9f69d67edb |
---|---|
585 | 585 |
586 local writequeue = { } -- list for messages to send | 586 local writequeue = { } -- list for messages to send |
587 | 587 |
588 local eol, fatal_send_error | 588 local eol, fatal_send_error |
589 | 589 |
590 socket:settimeout(0); | |
591 | |
590 local rstat, sstat = 0, 0 | 592 local rstat, sstat = 0, 0 |
591 | 593 |
592 --// local import of socket methods //-- | 594 --// local import of socket methods //-- |
593 | 595 |
594 local send = socket.send | 596 local send = socket.send |
831 add = addserver, | 833 add = addserver, |
832 loop = loop, | 834 loop = loop, |
833 stats = stats, | 835 stats = stats, |
834 closeall = closeall, | 836 closeall = closeall, |
835 addtimer = addtimer, | 837 addtimer = addtimer, |
838 wraptcpclient = wraptcpclient, | |
836 wraptlsclient = wraptlsclient, | 839 wraptlsclient = wraptlsclient, |
837 } | 840 } |