Comparison

net/http.lua @ 2810:85e253d6c4cf

net.http: destroy_request(): Pass request.handler to disconnect() listener to fix small leak
author Matthew Wild <mwild1@gmail.com>
date Wed, 03 Mar 2010 20:52:30 +0000
parent 2809:1a7b5b775275
child 2923:b7049746bd29
comparison
equal deleted inserted replaced
2809:1a7b5b775275 2810:85e253d6c4cf
211 end 211 end
212 212
213 function destroy_request(request) 213 function destroy_request(request)
214 if request.conn then 214 if request.conn then
215 request.handler.close() 215 request.handler.close()
216 listener.disconnect(request.conn, "closed"); 216 listener.disconnect(request.handler, "closed");
217 end 217 end
218 end 218 end
219 219
220 _M.urlencode = urlencode; 220 _M.urlencode = urlencode;
221 221