net.httpclient_listener: util.httpstream now always expects to be called with nil data, so call even when the socket closed cleanly
authorMatthew Wild <mwild1@gmail.com>
Sat, 03 Sep 2011 15:44:05 -0400
changeset 4378 5e1f4af11626
parent 4377 705a8f14427b
child 4379 e4d88f4a780c
net.httpclient_listener: util.httpstream now always expects to be called with nil data, so call even when the socket closed cleanly
net/httpclient_listener.lua
--- a/net/httpclient_listener.lua	Sat Sep 03 02:42:50 2011 +0500
+++ b/net/httpclient_listener.lua	Sat Sep 03 15:44:05 2011 -0400
@@ -52,7 +52,7 @@
 
 function httpclient.ondisconnect(conn, err)
 	local request = requests[conn];
-	if request and err ~= "closed" then
+	if request and request.conn then
 		request:reader(nil);
 	end
 	requests[conn] = nil;