Software /
code /
prosody
Comparison
net/httpserver.lua @ 2066:b3a640892549
net.httpserver: Pass correct connection object to disconnect listener, which fixes a small leak
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 01 Nov 2009 19:41:49 +0000 |
parent | 2021:43b7c0980d23 |
child | 2130:828e161cdfc7 |
child | 2761:5d3ad9a6b3be |
child | 2835:ff5039708b19 |
comparison
equal
deleted
inserted
replaced
2065:c384ae8ee17a | 2066:b3a640892549 |
---|---|
228 else | 228 else |
229 log("debug", "Request has no destroy callback"); | 229 log("debug", "Request has no destroy callback"); |
230 end | 230 end |
231 request.handler.close() | 231 request.handler.close() |
232 if request.conn then | 232 if request.conn then |
233 listener.disconnect(request.conn, "closed"); | 233 listener.disconnect(request.handler, "closed"); |
234 end | 234 end |
235 end | 235 end |
236 end | 236 end |
237 | 237 |
238 function new(params) | 238 function new(params) |