net.httpclient_listener: Don't notify request of closed connection if the close was initiated by us

Fri, 19 Feb 2010 03:23:51 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 19 Feb 2010 03:23:51 +0000
changeset 2674
a1fdfd7318df
parent 2673
61ae351c19b5
child 2675
ab643a77da2d

net.httpclient_listener: Don't notify request of closed connection if the close was initiated by us

net/httpclient_listener.lua file | annotate | diff | comparison | revisions
--- a/net/httpclient_listener.lua	Fri Feb 19 03:22:42 2010 +0000
+++ b/net/httpclient_listener.lua	Fri Feb 19 03:23:51 2010 +0000
@@ -30,7 +30,7 @@
 
 function httpclient.ondisconnect(conn, err)
 	local request = requests[conn];
-	if request then
+	if request and err ~= "closed" then
 		request:reader(nil);
 	end
 	requests[conn] = nil;

mercurial