Comparison

net/server.lua @ 374:ff502dada372

All the people who don't use TLS, this one's for you.
author Matthew Wild <mwild1@gmail.com>
date Sat, 22 Nov 2008 20:12:27 +0000
parent 335:906311ff2170
child 519:cccd610a0ef9
comparison
equal deleted inserted replaced
373:dd0345edeaf4 374:ff502dada372
617 end 617 end
618 handler.shutdown = function( pattern ) 618 handler.shutdown = function( pattern )
619 return shutdown( socket, pattern ) 619 return shutdown( socket, pattern )
620 end 620 end
621 handler.close = function( closed ) 621 handler.close = function( closed )
622 if eol and not fatal_send_error then handler._dispatchdata(); end 622 if eol and not fatal_send_error then handler.dispatchdata(); end
623 _ = not closed and shutdown( socket ) 623 _ = not closed and shutdown( socket )
624 _ = not closed and close( socket ) 624 _ = not closed and close( socket )
625 writelen = ( eol and removesocket( writelist, socket, writelen ) ) or writelen 625 writelen = ( eol and removesocket( writelist, socket, writelen ) ) or writelen
626 readlen = removesocket( readlist, socket, readlen ) 626 readlen = removesocket( readlist, socket, readlen )
627 socketlist[ socket ] = nil 627 socketlist[ socket ] = nil