Fix bug of connection timeout not happening on TLS channel.
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.
Showing with 21 additions and 6 deletions