Store connections in tcp-passive to allow sending
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Tue, 15 Apr 2014 23:49:45 +0000 (19:49 -0400)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Sat, 17 May 2014 04:22:36 +0000 (00:22 -0400)
commit05b1cea045c2d53e5d62f52177fdcc346a67eca0
tree27d2c2471ae34355d995dfc75110be1e82f5e90b
parent5bc8e4bc8a0a82daf396d08c50438db24c94d336
Store connections in tcp-passive to allow sending

In the case of TCP-ACTIVE, we don't have a problem, because the new
socket will generate a  peer-reflexive candidate with the right
sockptr, and all sends will go through it, but for TCP-PASSIVE, there
is no peer reflexive candidates, so once the pair is selected, the local
candidate will point to the TCP-PASSIVE candidate with the TCP_PASSIVE
socket type which will cause all sends to fail, so we need to proxy
them to the child connections
socket/tcp-passive.c