summaryrefslogtreecommitdiff
path: root/lib/http/server.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http/server.myr')
-rw-r--r--lib/http/server.myr10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/http/server.myr b/lib/http/server.myr
index 90fba7e..d256b18 100644
--- a/lib/http/server.myr
+++ b/lib/http/server.myr
@@ -16,10 +16,10 @@ pkg http =
const announce = {ds
match std.announce(ds)
| `std.Err e: -> `std.Err `Econn
- | `std.Ok lfd:
+ | `std.Ok a:
-> `std.Ok std.mk([
.refs=1,
- .lfd=lfd,
+ .ann=a,
.quit=false
])
;;
@@ -76,14 +76,12 @@ const statusstr = {st
}
const shutdown = {srv
- std.close(srv.lfd)
+ std.aclose(srv.ann)
srv.quit = true
-
}
-
const waitconn = {srv
- match std.accept(srv.lfd)
+ match std.accept(srv.ann)
| `std.Ok fd: -> `std.Ok fd
| `std.Err e: -> `std.Err `Econn
;;