Software /
code /
prosody
Comparison
net/http.lua @ 6383:ec8878113907
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 02 Sep 2014 22:34:32 +0200 |
parent | 5964:ad04170d6533 |
parent | 6382:57d23c26039b |
child | 6502:8fed6ea12098 |
comparison
equal
deleted
inserted
replaced
6372:305226a9e581 | 6383:ec8878113907 |
---|---|
66 function listener.ondisconnect(conn, err) | 66 function listener.ondisconnect(conn, err) |
67 local request = requests[conn]; | 67 local request = requests[conn]; |
68 if request and request.conn then | 68 if request and request.conn then |
69 request:reader(nil, err); | 69 request:reader(nil, err); |
70 end | 70 end |
71 requests[conn] = nil; | |
72 end | |
73 | |
74 function listener.ondetach(conn) | |
71 requests[conn] = nil; | 75 requests[conn] = nil; |
72 end | 76 end |
73 | 77 |
74 local function request_reader(request, data, err) | 78 local function request_reader(request, data, err) |
75 if not request.parser then | 79 if not request.parser then |