Went back to passing the socket file descriptor by value.