mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #3754 from mikaleppanen/lwip_send_filter
Added filter to send minus events to lwip adaptationpull/3798/head
commit
02f6cd0f5c
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue