threading

This commit is contained in:
Peter McGoron 2023-04-20 15:20:23 -04:00
parent 409842d883
commit bb359d36a1
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@ CONFIG_NET_UDP=y
CONFIG_NET_TCP_ISN_RFC6528=n CONFIG_NET_TCP_ISN_RFC6528=n
CONFIG_INIT_STACKS=y CONFIG_INIT_STACKS=y
CONFIG_THREAD_LOCAL_STORAGE=y
CONFIG_SCHED_SCALABLE=y
CONFIG_NET_CONFIG_SETTINGS=y CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_NEED_IPV4=y CONFIG_NET_CONFIG_NEED_IPV4=y

View File

@ -52,8 +52,10 @@ server_accept_client(int server)
*/ */
do { do {
LOG_DBG("Accept"); LOG_DBG("Accept");
/*
struct zsock_pollfd server_fd = { .fd = server, .events = ZSOCK_POLLIN }; struct zsock_pollfd server_fd = { .fd = server, .events = ZSOCK_POLLIN };
zsock_poll(&server_fd, 1, -1); zsock_poll(&server_fd, 1, -1);
*/
client = zsock_accept(server, (struct sockaddr *)&addr, &len); client = zsock_accept(server, (struct sockaddr *)&addr, &len);
if (client < 0) if (client < 0)
LOG_WRN("error in accept: %d", errno); LOG_WRN("error in accept: %d", errno);