[sr-dev] TCP and TLS connection handling