summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/scripts
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-15 22:14:12 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-15 22:42:12 +0300
commitafce978aca77805e84a2442c93c26dab045784f8 (patch)
tree2fb23380f45cb717de7245f0996e554894a05356 /esp8266/scripts
parentca63c770733ead7fd5de061ddc5268ffbd3c368b (diff)
downloadmicropython-afce978aca77805e84a2442c93c26dab045784f8.tar.gz
micropython-afce978aca77805e84a2442c93c26dab045784f8.zip
extmod/modlwip: Rework how Python accept callback is called.
Calling it from lwIP accept callback will lead incorrect functioning and/or packet leaks if Python callback has any networking calls, due to lwIP non-reentrancy. So, instead schedule "poll" callback to do that, which will be called by lwIP when it does not perform networking activities. "Poll" callback is called infrequently though (docs say every 0.5s by default), so for better performance, lwIP needs to be patched to call poll callback soon after accept callback, but when current packet is already processed.
Diffstat (limited to 'esp8266/scripts')
0 files changed, 0 insertions, 0 deletions