Software /
code /
prosody
Comparison
net/http.lua @ 4963:54e2c83af127
net.http: Don't call ondisconnect manually, net.server now calls it on close
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 Jul 2012 16:54:58 +0100 |
parent | 4865:9171dc2357e0 |
child | 4977:7006ccbf22a9 |
comparison
equal
deleted
inserted
replaced
4962:1d8fb12a9b2d | 4963:54e2c83af127 |
---|---|
201 | 201 |
202 function destroy_request(request) | 202 function destroy_request(request) |
203 if request.conn then | 203 if request.conn then |
204 request.conn = nil; | 204 request.conn = nil; |
205 request.handler:close() | 205 request.handler:close() |
206 listener.ondisconnect(request.handler, "closed"); | |
207 end | 206 end |
208 end | 207 end |
209 | 208 |
210 _M.urlencode = urlencode; | 209 _M.urlencode = urlencode; |
211 | 210 |