From bb359d36a15f5fea71f061595781d61428a492b8 Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Thu, 20 Apr 2023 15:20:23 -0400 Subject: [PATCH] threading --- software/prj.conf | 2 ++ software/src/sock.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/software/prj.conf b/software/prj.conf index 27131df..c67f525 100644 --- a/software/prj.conf +++ b/software/prj.conf @@ -15,6 +15,8 @@ CONFIG_NET_UDP=y CONFIG_NET_TCP_ISN_RFC6528=n CONFIG_INIT_STACKS=y +CONFIG_THREAD_LOCAL_STORAGE=y +CONFIG_SCHED_SCALABLE=y CONFIG_NET_CONFIG_SETTINGS=y CONFIG_NET_CONFIG_NEED_IPV4=y diff --git a/software/src/sock.c b/software/src/sock.c index f7ff3b1..4a15434 100644 --- a/software/src/sock.c +++ b/software/src/sock.c @@ -52,8 +52,10 @@ server_accept_client(int server) */ do { LOG_DBG("Accept"); + /* struct zsock_pollfd server_fd = { .fd = server, .events = ZSOCK_POLLIN }; zsock_poll(&server_fd, 1, -1); + */ client = zsock_accept(server, (struct sockaddr *)&addr, &len); if (client < 0) LOG_WRN("error in accept: %d", errno);