Commit 2bdf2f9a7adc0838d19fb713fd727310e27593e0

Thomas de Grivel 2024-09-11T13:59:40

wip httpd

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 5fc8e9c..a443bda 100644
--- a/lib/kc3/0.1/httpd.kc3
+++ b/lib/kc3/0.1/httpd.kc3
@@ -57,7 +57,7 @@ defmodule HTTPd do
         puts("#{res.code} #{client_addr} #{req.method} #{req.url}")
         FD.set_blocking(socket, false)
       else
-        FD.close(socket)
+        File.close(socket)
       end
     end
   end