Mercurial > prosody-hg
diff 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 |
| parents | 8399b5b57046 |
| children |
line wrap: on
line diff
--- 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;
