Commit 632d3ed1f464480f13ff841aac4a26cbcabf5a69

Thomas de Grivel 2024-07-28T23:45:03

fix test_asan

diff --git a/lib/kc3/0.1/socket/buf.kc3 b/lib/kc3/0.1/socket/buf.kc3
index 3162979..af8d02c 100644
--- a/lib/kc3/0.1/socket/buf.kc3
+++ b/lib/kc3/0.1/socket/buf.kc3
@@ -9,7 +9,7 @@ defmodule Socket.Buf do
 
   def accept = cfn Socket.Buf "socket_buf_init_accept" (Result, Socket)
 
-  def close = cfn Void "socket_buf_clean" (Socket.Buf)
+  def close = cfn Void "socket_buf_close" (Socket.Buf)
 
   def connect = cfn Socket.Buf "socket_buf_init_connect" (Result, Str, Str)
 
diff --git a/test/http/03_client_server.kc3 b/test/http/03_client_server.kc3
index 4817cd0..bd0ef74 100644
--- a/test/http/03_client_server.kc3
+++ b/test/http/03_client_server.kc3
@@ -4,9 +4,9 @@ quote client = Socket.Buf.connect("localhost", "58000")
 client = Socket.Buf.connect("localhost", "58000")
 quote server_client = Socket.Buf.accept(server)
 server_client = Socket.Buf.accept(server)
-quote Socket.Buf.close(client)
-Socket.Buf.close(client)
 quote Socket.Buf.close(server_client)
 Socket.Buf.close(server_client)
+quote Socket.Buf.close(client)
+Socket.Buf.close(client)
 quote Socket.close(server)
 Socket.close(server)