Software /
code /
prosody
Changeset
2812:496a80322a51
net.httpclient_listener: Don't notify request of closed connection if the close was initiated by us
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 19 Feb 2010 03:23:51 +0000 |
parents | 2811:11df731e1b87 |
children | 2813:46dfcc33ea9e |
files | net/httpclient_listener.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/httpclient_listener.lua Fri Jan 15 18:30:33 2010 +0100 +++ b/net/httpclient_listener.lua Fri Feb 19 03:23:51 2010 +0000 @@ -30,7 +30,7 @@ function httpclient.disconnect(conn, err) local request = requests[conn]; - if request then + if request and err ~= "closed" then request:reader(nil); end requests[conn] = nil;