error writing "sock560de2b50a70": socket is not connected