Write queue after connect windows

On 10/19/2014 08:44 PM, Andrius Bentkus wrote:
> In src/win/stream-inl.h:
> 
>> +INLINE static void uv__tcp_do_write(uv_stream_t* stream) {
>> +  uv_write_t* req;
>> +  int err;
>> +  QUEUE *q;
>> +
>> +  while (!QUEUE_EMPTY(&stream->write_queue)) {
>> +    q = QUEUE_HEAD(&stream->write_queue);
>> +    QUEUE_REMOVE(q);
>> +
>> +    req = QUEUE_DATA(q, uv_write_t, queue);
>> +
>> +    err = uv__tcp_write_req(req, req->bufs, req->nbufs);
>> +
>> +    if (err && req->cb != NULL) {
>> +      SET_REQ_ERROR(req, WSAGetLastError());
>> +      uv_insert_pending_req(stream->loop, (uv_req_t*)req);
> 
> Are you sure that if we queue something with PostQueuedCompletionStatus
> before the other write finishes that it won't come out before?
> 

No, that probably won't work either... we might need some
write_completed_queue like we have on Unix.


-- 
Saúl Ibarra Corretgé
bettercallsaghul.com