Merge pull request #3754 from mikaleppanen/lwip_send_filter

Added filter to send minus events to lwip adaptation
pull/3798/head
Sam Grove 2017-02-17 09:16:39 -06:00 committed by GitHub
commit 02f6cd0f5c
1 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,11 @@ static void mbed_lwip_arena_dealloc(struct lwip_socket *s)
static void mbed_lwip_socket_callback(struct netconn *nc, enum netconn_evt eh, u16_t len)
{
// Filter send minus events
if (eh == NETCONN_EVT_SENDMINUS && nc->state == NETCONN_WRITE) {
return;
}
sys_prot_t prot = sys_arch_protect();
for (int i = 0; i < MEMP_NUM_NETCONN; i++) {