Skip to content

udp-turn: handle multiple RFC4571 frames received in a TCP-TURN message

Jakub Adam requested to merge xhaakon/libnice:turn-framing into master

There might be multiple RFC4571-framed messages (or fragments thereof) within a single TCP-TURN message. Make sure each NiceInputMessage passed by the user into socket_recv_messages() gets exactly one RFC4571 frame, or remains empty if there aren't any messages to receive.

We should keep any data that doesn't fit into the user buffers for the next time socket_recv_messages() gets called with the socket.

Merge request reports