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);