sessionmanager: test for tcp connection.