Write queue after connect windows

On 10/20/2014 12:02 AM, Andrius Bentkus wrote:
> In src/win/tcp.c:
> 
>> @@ -1116,8 +1179,14 @@ void uv_process_tcp_connect_req(uv_loop_t* loop, uv_tcp_t* handle,
>>    } else {
>>      err = GET_REQ_SOCK_ERROR(req);
>>    }
>> +
>>    req->cb(req, uv_translate_sys_error(err));
> 
> shouldn't we check if req->cb != NULL, becaue something like
> uv_connect(addr, NULL) seems now feasible.
> 

It makes no sense to not have a callback in uv_tcp|pipe_connect. We
should give EINVAL in case NULL was passed.