threading
This commit is contained in:
parent
409842d883
commit
bb359d36a1
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue