Software /
code /
prosody
Diff
net/http.lua @ 6382:57d23c26039b
Merge 0.9->0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 02 Sep 2014 22:33:11 +0200 |
parent | 5950:bd1d1c29a7e7 |
parent | 6380:4220ffb87b22 |
child | 6383:ec8878113907 |
child | 6501:71b6e8b48a12 |
line wrap: on
line diff
--- a/net/http.lua Tue Sep 02 17:58:12 2014 +0100 +++ b/net/http.lua Tue Sep 02 22:33:11 2014 +0200 @@ -72,6 +72,10 @@ requests[conn] = nil; end +function listener.ondetach(conn) + requests[conn] = nil; +end + local function request_reader(request, data, err) if not request.parser then local function error_cb(reason)