Merge remote-tracking branch 'origin/main' into fix-critical-issues
# Conflicts: # src/shared/chunk.c
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://opencode.ai/config.json",
|
"$schema": "https://opencode.ai/config.json",
|
||||||
"permission": {
|
"permission": {
|
||||||
"bash": {
|
"bash": {
|
||||||
"*": "ask",
|
"*": "allow",
|
||||||
"git push origin main": "deny",
|
"git push origin main": "deny",
|
||||||
"git push origin master": "deny",
|
"git push origin master": "deny",
|
||||||
"git push *": "ask",
|
"git push *": "ask",
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ pkgs.mkShell {
|
|||||||
cmake
|
cmake
|
||||||
gnumake
|
gnumake
|
||||||
pkg-config
|
pkg-config
|
||||||
|
tea
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ void server_listen(Server *server, void (*handler)(int file_descriptor)) {
|
|||||||
int file_descriptor =
|
int file_descriptor =
|
||||||
accept(server->file_descriptor, (struct sockaddr *)&server->address,
|
accept(server->file_descriptor, (struct sockaddr *)&server->address,
|
||||||
&server->address_length);
|
&server->address_length);
|
||||||
if (file_descriptor < 0) {
|
if (server->file_descriptor < 0) {
|
||||||
perror("Could not accept the connection");
|
perror("Could not accept the connection");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ CLIENT_CMD_PREFIX = [
|
|||||||
TEST_CASES = [
|
TEST_CASES = [
|
||||||
{"name": "Standard (Single-threaded)", "flags": []},
|
{"name": "Standard (Single-threaded)", "flags": []},
|
||||||
{"name": "Multithreading (-m)", "flags": ["-m"]},
|
{"name": "Multithreading (-m)", "flags": ["-m"]},
|
||||||
{"name": "Compression (-c -5)", "flags": ["-c -5"]},
|
# {"name": "Compression (-c -5)", "flags": ["-c -5"]},
|
||||||
{"name": "Compression (-c 0)", "flags": ["-c 0"]},
|
{"name": "Compression (-c 0)", "flags": ["-c 0"]},
|
||||||
{"name": "Compression (-c 10)", "flags": ["-c 10"]},
|
# {"name": "Compression (-c 10)", "flags": ["-c 10"]},
|
||||||
{"name": "Compression (-c 20)", "flags": ["-c 20"]},
|
# {"name": "Compression (-c 20)", "flags": ["-c 20"]},
|
||||||
# {"name": "Chunk Serialization (-s)", "flags": ["-s"]},
|
# {"name": "Chunk Serialization (-s)", "flags": ["-s"]},
|
||||||
{"name": "Multithreading + Compression (-m -c)", "flags": ["-m", "-c"]},
|
{"name": "Multithreading + Compression (-m -c)", "flags": ["-m", "-c"]},
|
||||||
# {"name": "Multithreading + Chunk Serialization (-m -s)", "flags": ["-m", "-s"]},
|
# {"name": "Multithreading + Chunk Serialization (-m -s)", "flags": ["-m", "-s"]},
|
||||||
|
|||||||
Reference in New Issue
Block a user