summaryrefslogtreecommitdiffstatshomepage
path: root/tests/multi_net/udp_data_multi.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-05-07 13:05:13 +1000
committerDamien George <damien@micropython.org>2025-05-12 14:17:44 +1000
commit26e978e7bc0b799d8b75d7cfe0219d2b788affa6 (patch)
tree423f21e5979551c08085f169db748b208802c2ef /tests/multi_net/udp_data_multi.py
parent61eedbbd1126f895f729a1cf5f9e52e42ddcd471 (diff)
downloadmicropython-26e978e7bc0b799d8b75d7cfe0219d2b788affa6.tar.gz
micropython-26e978e7bc0b799d8b75d7cfe0219d2b788affa6.zip
extmod/modlwip: Implement a queue of incoming UDP/raw packets.
The bare-metal lwIP socket interface is currently quite limited when used for UDP streams, because it only allows one outstanding incoming UDP packet. If one UDP packet is waiting to be socket.recv'd and another one comes along, then the second one is simply dropped. This commit implements a queue for incoming UDP and raw packets. The queue depth is fixed at compile time, and is currently 4. This allows better use of UDP connections, eg more efficient. It also makes DTLS work better which sometimes has a queue of UDP packets (eg during the connection phase). Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/multi_net/udp_data_multi.py')
0 files changed, 0 insertions, 0 deletions