bug fix on connect logic, checkup with getsockopt