ARMmbed / mbed-client-classic

DEPRECATED: mbed Client adaptation layer for mbed OS Classic
https://cloud.mbed.com/docs/current
Apache License 2.0
0 stars 5 forks source link

Fix irq contexts #31

Closed geky closed 8 years ago

geky commented 8 years ago

Should resolve https://github.com/ARMmbed/mbed-os-example-client/issues/75

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.

moved from https://github.com/ARMmbed/mbed-os/pull/2530 cc @yogpan01, @jupe

teetak01 commented 8 years ago

rebuild