Threaded socket connection and response handlers