Socket should be thread-safe