Commit 43f8691c authored by Youness Alaoui's avatar Youness Alaoui Committed by Olivier Crête

Allocate request is sent on UDP-TURN-OVER-TCP socket and is also framed

The UDP-TURN socket layer is only added at the end after we discover
the relay candidate with Allocate, but until then, we use the
UDP-TURN-OVER-TCP socket layer directly, so we need to do the rfc
framing for that as well, otherwise, it won't work.
parent 60b65b2e
......@@ -2877,7 +2877,8 @@ agent_recv_message_unlocked (
/* In the case of OC2007 and OC2007R2 which uses UDP TURN for TCP-ACTIVE
* and TCP-PASSIVE candidates, the recv_messages will be packetized and
* always return an entire frame, so we must read it as is */
if (nicesock->type == NICE_SOCKET_TYPE_UDP_TURN) {
if (nicesock->type == NICE_SOCKET_TYPE_UDP_TURN_OVER_TCP ||
nicesock->type == NICE_SOCKET_TYPE_UDP_TURN) {
GInputVector *local_bufs;
NiceInputMessage local_message;
guint n_bufs = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment