Software /
code /
prosody
Comparison
net/server.lua @ 561:e2a88796cdce
Remove linger option on sockets, made no difference, and I forgot to remove it earlier
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 05 Dec 2008 19:21:44 +0000 |
parent | 528:5fabb5aeed9d |
child | 562:04ee161d936b |
comparison
equal
deleted
inserted
replaced
560:6c07f15a34f4 | 561:e2a88796cdce |
---|---|
362 --// transform socket to ssl object //-- | 362 --// transform socket to ssl object //-- |
363 | 363 |
364 local err | 364 local err |
365 | 365 |
366 socket:settimeout( 0 ) | 366 socket:settimeout( 0 ) |
367 out_put("setting linger on "..tostring(socket)) | |
368 socket:setoption("linger", { on = true, timeout = 10 }); | |
369 --// private closures of the object //-- | 367 --// private closures of the object //-- |
370 | 368 |
371 local writequeue = { } -- buffer for messages to send | 369 local writequeue = { } -- buffer for messages to send |
372 | 370 |
373 local eol, fatal_send_error -- end of buffer | 371 local eol, fatal_send_error -- end of buffer |