making signalproxy direct connection thread safe