[update] the "event_callback" will be change by RT-Thread dfs.

This commit is contained in:
liuxianliang 2021-06-28 11:18:28 +08:00
parent da1302cbda
commit 9f45c13ac9
2 changed files with 4 additions and 2 deletions

View File

@ -531,7 +531,8 @@ lwip_accept(int s, struct sockaddr *addr, socklen_t *addrlen)
return -1;
}
LWIP_ASSERT("invalid socket index", (newsock >= LWIP_SOCKET_OFFSET) && (newsock < NUM_SOCKETS + LWIP_SOCKET_OFFSET));
// LWIP_ASSERT("newconn->callback == event_callback", newconn->callback == event_callback);
/* RT-Thread has changed callback when using BSD socket API, so remove this assert. */
/* LWIP_ASSERT("newconn->callback == event_callback", newconn->callback == event_callback); */
nsock = &sockets[newsock - LWIP_SOCKET_OFFSET];
/* See event_callback: If data comes in right away after an accept, even

View File

@ -531,7 +531,8 @@ lwip_accept(int s, struct sockaddr *addr, socklen_t *addrlen)
return -1;
}
LWIP_ASSERT("invalid socket index", (newsock >= LWIP_SOCKET_OFFSET) && (newsock < NUM_SOCKETS + LWIP_SOCKET_OFFSET));
LWIP_ASSERT("newconn->callback == event_callback", newconn->callback == event_callback);
/* RT-Thread has changed callback when using BSD socket API, so remove this assert. */
/* LWIP_ASSERT("newconn->callback == event_callback", newconn->callback == event_callback); */
nsock = &sockets[newsock - LWIP_SOCKET_OFFSET];
/* See event_callback: If data comes in right away after an accept, even