Diff

net/http/server.lua @ 6382:57d23c26039b

Merge 0.9->0.10
author Kim Alvefur <zash@zash.se>
date Tue, 02 Sep 2014 22:33:11 +0200
parent 6367:769a3577dd85
parent 6380:4220ffb87b22
child 6529:a2dadaa9137f
line wrap: on
line diff
--- a/net/http/server.lua	Tue Sep 02 17:58:12 2014 +0100
+++ b/net/http/server.lua	Tue Sep 02 22:33:11 2014 +0200
@@ -142,6 +142,10 @@
 	sessions[conn] = nil;
 end
 
+function listener.ondetach(conn)
+	sessions[conn] = nil;
+end
+
 function listener.onincoming(conn, data)
 	sessions[conn]:feed(data);
 end