Comparison

net/httpclient_listener.lua @ 4378:5e1f4af11626

net.httpclient_listener: util.httpstream now always expects to be called with nil data, so call even when the socket closed cleanly
author Matthew Wild <mwild1@gmail.com>
date Sat, 03 Sep 2011 15:44:05 -0400
parent 4371:8399b5b57046
comparison
equal deleted inserted replaced
4377:705a8f14427b 4378:5e1f4af11626
50 end 50 end
51 end 51 end
52 52
53 function httpclient.ondisconnect(conn, err) 53 function httpclient.ondisconnect(conn, err)
54 local request = requests[conn]; 54 local request = requests[conn];
55 if request and err ~= "closed" then 55 if request and request.conn then
56 request:reader(nil); 56 request:reader(nil);
57 end 57 end
58 requests[conn] = nil; 58 requests[conn] = nil;
59 end 59 end
60 60