<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div><span></span></div><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1429875750236_3995"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1429875750236_3994"><div class="y_msg_container" id="yui_3_16_0_1_1429875750236_3993"><br clear="none"><div class="qtdSeparateBR"><br><br></div><div class="yqt4130092371" id="yqtfd15030"><br clear="none">>> I have 2 instances of libnice talking to each other nicely<br clear="none">>> But when one of the instance is killed, the other one is not notified<br clear="none">>> and retries forever to send data.<br clear="none">>> What would be the right way to get that "peer is gone" information ?<br clear="none">>> I've hooked all the signals but they are not invoked in that case<br clear="none">>> (might have made a mistake there).</div>><br clear="none">><br clear="none">>PseudoTcpSocket has supported this since libnice 0.1.8, using its FIN–<br clear="none">>ACK support.<br clear="none">><br clear="none">>Make sure PseudoTcpSocket:support-fin-ack is set to TRUE.<br clear="none">>pseudo_tcp_socket_recv() should return 0 when the remote peer has called<br clear="none">>pseudo_tcp_socket_close(). You can also check this using<br clear="none">>pseudo_tcp_socket_is_closed_remotely().</div><div class="y_msg_container" id="yui_3_16_0_1_1429875750236_3993"><br></div><div class="y_msg_container" id="yui_3_16_0_1_1429875750236_3993" dir="ltr">Thanks for the info, </div><div class="y_msg_container" id="yui_3_16_0_1_1429875750236_3993" dir="ltr">In the case the peer has been killed, i'm not sure that will work, since there will be no response at all (?)</div><div class="y_msg_container" id="yui_3_16_0_1_1429875750236_3993" dir="ltr"><br></div><div class="y_msg_container" id="yui_3_16_0_1_1429875750236_3993" dir="ltr"><br><br></div> </div> </div>  </div></body></html>