mbed-client defines M2MConnectionHandlerPimpl::socket_event for handling the event passed through the UDPSocket::attach function. Unfortunately, the previous implementation contained both a tr_debug call and malloc call that were unacceptably long-running and caused UART bytes to be dropped.
This issue was not unnoticable in lwip's implementation. We could update lwip to dispatch events in a critical section, insuring correct behaviour, although this would introduce unnecessary jitter in existing code.
Should resolve https://github.com/ARMmbed/mbed-os-example-client/issues/75
mbed-client defines
M2MConnectionHandlerPimpl::socket_event
for handling the event passed through theUDPSocket::attach
function. Unfortunately, the previous implementation contained both atr_debug
call andmalloc
call that were unacceptably long-running and caused UART bytes to be dropped.This issue was not unnoticable in lwip's implementation. We could update lwip to dispatch events in a critical section, insuring correct behaviour, although this would introduce unnecessary jitter in existing code.
moved from https://github.com/ARMmbed/mbed-os/pull/2530 cc @yogpan01, @jupe