Commit eb94f3996387f3f90f8252ad7036fe8beb008bbc

Thomas de Grivel 2024-09-12T18:33:16

fix connection: keep-alive

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kc3/0.1/httpd.kc3 b/lib/kc3/0.1/httpd.kc3
index 9c1ab7e..805dfa3 100644
--- a/lib/kc3/0.1/httpd.kc3
+++ b/lib/kc3/0.1/httpd.kc3
@@ -52,8 +52,6 @@ defmodule HTTPd do
           if (real_ip) do real_ip else client.addr_str end
         end
         puts("#{response.code} #{client_addr} #{req.method} #{req.url}")
-      else
-        File.close(socket)
       end
     end
   end