Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
6377:50e5aed4eeea | 6382:57d23c26039b |
---|---|
67 function listener.ondisconnect(conn, err) | 67 function listener.ondisconnect(conn, err) |
68 local request = requests[conn]; | 68 local request = requests[conn]; |
69 if request and request.conn then | 69 if request and request.conn then |
70 request:reader(nil, err); | 70 request:reader(nil, err); |
71 end | 71 end |
72 requests[conn] = nil; | |
73 end | |
74 | |
75 function listener.ondetach(conn) | |
72 requests[conn] = nil; | 76 requests[conn] = nil; |
73 end | 77 end |
74 | 78 |
75 local function request_reader(request, data, err) | 79 local function request_reader(request, data, err) |
76 if not request.parser then | 80 if not request.parser then |