Software /
code /
prosody
Comparison
net/server_select.lua @ 2732:dabdc56561f9
net.server_select: Fix typo
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 01 Mar 2010 18:47:03 +0000 |
parent | 2728:3f8d9319d4a3 |
child | 2740:2442c54cf9ec |
comparison
equal
deleted
inserted
replaced
2731:373a7c960409 | 2732:dabdc56561f9 |
---|---|
470 bufferqueuelen = 0 | 470 bufferqueuelen = 0 |
471 bufferlen = 0 | 471 bufferlen = 0 |
472 _sendlistlen = removesocket( _sendlist, socket, _sendlistlen ) -- delete socket from writelist | 472 _sendlistlen = removesocket( _sendlist, socket, _sendlistlen ) -- delete socket from writelist |
473 _ = needtls and handler:starttls(nil, true) | 473 _ = needtls and handler:starttls(nil, true) |
474 _writetimes[ handler ] = nil | 474 _writetimes[ handler ] = nil |
475 _ = toclose and handlerclose( ) | 475 _ = toclose and handler:close( ) |
476 return true | 476 return true |
477 elseif byte and ( err == "timeout" or err == "wantwrite" ) then -- want write | 477 elseif byte and ( err == "timeout" or err == "wantwrite" ) then -- want write |
478 buffer = string_sub( buffer, byte + 1, bufferlen ) -- new buffer | 478 buffer = string_sub( buffer, byte + 1, bufferlen ) -- new buffer |
479 bufferqueue[ 1 ] = buffer -- insert new buffer in queue | 479 bufferqueue[ 1 ] = buffer -- insert new buffer in queue |
480 bufferqueuelen = 1 | 480 bufferqueuelen = 1 |