Comparison

net/server_select.lua @ 4675:80f2d952d4c5

net.server_select: Remove server from _server table when closing
author Matthew Wild <mwild1@gmail.com>
date Tue, 24 Apr 2012 15:42:35 +0100
parent 4429:8e02ba75ef06
child 4808:07d0a3a75c8a
comparison
equal deleted inserted replaced
4674:f44726a910a0 4675:80f2d952d4c5
200 end 200 end
201 end 201 end
202 socket:close( ) 202 socket:close( )
203 _sendlistlen = removesocket( _sendlist, socket, _sendlistlen ) 203 _sendlistlen = removesocket( _sendlist, socket, _sendlistlen )
204 _readlistlen = removesocket( _readlist, socket, _readlistlen ) 204 _readlistlen = removesocket( _readlist, socket, _readlistlen )
205 _server[ip..":"..serverport] = nil;
205 _socketlist[ socket ] = nil 206 _socketlist[ socket ] = nil
206 handler = nil 207 handler = nil
207 socket = nil 208 socket = nil
208 --mem_free( ) 209 --mem_free( )
209 out_put "server.lua: closed server handler and removed sockets from list" 210 out_put "server.lua: closed server handler and removed sockets from list"