• Ghislain MARY's avatar
    Fix bug of connection timeout not happening on TLS channel. · 71e0f389
    Ghislain MARY authored
    The object-oriented architecture was not used correctly for the TLS channel. The call to belle_sip_channel_set_socket was reinitializing the belle_sip_source_t and so erasing the timeout value initialized by stream_channel_connect.
    The fix is to just replace the notify callback (that was the only goal of the call to belle_sip_channel_set_socket).
    Also added a unit test to check this.
    71e0f389