[FIX] assert condition in socket ctor when connecting