Skip to content

Commit

Permalink
Dependency update and newer compiler fixes - Fixes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaloupka committed Aug 30, 2024
1 parent 536e0c2 commit 321d8af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/echo_server/dub.sdl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name "echo_server"

dependency "during" path="../.."
dependency "mempooled" version="~>0.1.2"
dependency "mempooled" version="~>0.4.0"
4 changes: 2 additions & 2 deletions examples/echo_server/dub.selections.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"fileVersion": 1,
"versions": {
"during": {"path":"../.."},
"mempooled": "0.1.2",
"silly": "1.0.2"
"mempooled": "0.4.0",
"silly": "1.1.1"
}
}
6 changes: 4 additions & 2 deletions examples/echo_server/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,10 @@ void closeClient(ClientContext* ctx)
totalClients--;
printf("%d: closing, total=%d\n", ctx.readCtx.fd, totalClients);
close(ctx.readCtx.fd);
bpool.dealloc(cast(IOBuffer*)&ctx.buffers[0][0]);
bpool.dealloc(cast(IOBuffer*)&ctx.buffers[1][0]);
IOBuffer* rb = cast(IOBuffer*)&ctx.buffers[0][0];
IOBuffer* wb = cast(IOBuffer*)&ctx.buffers[1][0];
bpool.dealloc(rb);
bpool.dealloc(wb);
cpool.dealloc(ctx);
}

Expand Down

0 comments on commit 321d8af

Please sign in to comment.