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_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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue