Skip to content

Commit

Permalink
add unix domain socket for both server and client side (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Flash authored Sep 25, 2022
1 parent 12362d2 commit 4621cd3
Show file tree
Hide file tree
Showing 10 changed files with 612 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: build examples
run: WITH_LIBUV=1 WITH_ASAN=1 make examples
- name: run test
run: ./hammer_test
run: ./hammer_test && ./hammer_test_unix

test_macos_kqueue:

Expand All @@ -30,8 +30,8 @@ jobs:
- name: build examples
run: WITH_ASAN=1 make examples
- name: run test
run: ./hammer_test
run: ./hammer_test && ./hammer_test_unix

test_linux_libuv:

runs-on: ubuntu-latest
Expand All @@ -43,8 +43,8 @@ jobs:
- name: build examples
run: WITH_LIBUV=1 WITH_ASAN=1 make examples
- name: run test
run: ./hammer_test
run: ./hammer_test && ./hammer_test_unix

test_linux_epoll:

runs-on: ubuntu-latest
Expand All @@ -54,4 +54,4 @@ jobs:
- name: build examples
run: WITH_ASAN=1 make examples
- name: run test
run: ./hammer_test
run: ./hammer_test && ./hammer_test_unix
2 changes: 1 addition & 1 deletion examples/echo_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ struct us_socket_t *on_echo_socket_open(struct us_socket_t *s, int is_client, ch
es->backpressure = 0;
es->length = 0;

/* Start a timeout to close the socekt if boring */
/* Start a timeout to close the socket if boring */
us_socket_timeout(SSL, s, 30);

printf("Client connected\n");
Expand Down
2 changes: 1 addition & 1 deletion examples/hammer_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ int main() {
us_socket_timeout(SSL, (struct us_socket_t *) listen_socket, 16);

if (listen_socket) {
printf("Running hammer test\n");
printf("Running hammer test over tcpip\n");
print_progress(0);
next_connection();

Expand Down
Loading

0 comments on commit 4621cd3

Please sign in to comment.