Try establishing your socket first by connecting then running
socket:keepalive(...)
-Ryan
On 8/3/14, 9:38 PM, develephant wrote:
> Hello,
>
> I'm trying to use socket:keepalive() but if I pass any parameters,
> like socket:keepalive( true, 60000 ) I end up with a runtime error.
> If I just use socket:keepalive() without parameters, it doesn't error.
>
> In net.lua socket:keepalive shows both an enable and delay parameter.
> What am I missing?
>
> Here is the error when I pass parameters:
>
> |
> /usr/local/lib/luvit/net.lua:132: tcp_keepalive: success
> stack traceback:
> [C]: in function 'keepalive'
> /usr/local/lib/luvit/net.lua:132: in function 'keepalive'
> /home/coronium/modules/gs/Client.lua:25: in function 'initialize'
> /usr/local/lib/luvit/core.lua:101: in function 'new'
> /home/coronium/modules/lobby.lua:38: in function 'callback'
> /usr/local/lib/luvit/core.lua:236: in function 'emit'
> /home/coronium/modules/gs/Server.lua:25: in function 'callback'
> /usr/local/lib/luvit/core.lua:236: in function 'emit'
> /usr/local/lib/luvit/net.lua:325: in function
> </usr/local/lib/luvit/net.lua:311>
> [C]: in function 'xpcall'
> /usr/local/lib/luvit/luvit.lua:279: in function
> </usr/local/lib/luvit/luvit.lua:277>
> [C]: in function 'run'
> /usr/local/lib/luvit/luvit.lua:426: in main chunk
> [C]: in function 'require'
> [string " local path = require('uv_native').execpat..."]:1: in main
> chunk
> WARNING: forgot to close luv_tcp lhandle=0x40475f18 handle=0x27f07e0
> WARNING: forgot to close luv_tcp lhandle=0x40475638 handle=0x27f0700
> WARNING: forgot to close luv_tty lhandle=0x402f1de8 handle=0x27ddad0
> |
>
>
>
> Cheers.
> --
> You received this message because you are subscribed to the Google
> Groups "luvit" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"luvit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.