Software /
code /
prosody
Comparison
net/httpclient_listener.lua @ 737:ade262a8da7f
net.http: Remove request from conn->request table when conn closed
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 16 Jan 2009 23:33:19 +0000 |
parent | 616:69bc5782b25e |
child | 1227:6a587ca99109 |
comparison
equal
deleted
inserted
replaced
736:7cbae2d16fd6 | 737:ade262a8da7f |
---|---|
23 function httpclient.disconnect(conn, err) | 23 function httpclient.disconnect(conn, err) |
24 local request = requests[conn]; | 24 local request = requests[conn]; |
25 if request then | 25 if request then |
26 request:reader(nil); | 26 request:reader(nil); |
27 end | 27 end |
28 --requests[conn] = nil; | 28 requests[conn] = nil; |
29 end | 29 end |
30 | 30 |
31 function httpclient.register_request(conn, req) | 31 function httpclient.register_request(conn, req) |
32 print("Registering a request for "..tostring(conn)); | 32 print("Registering a request for "..tostring(conn)); |
33 requests[conn] = req; | 33 requests[conn] = req; |