Hi,

https://github.com/joyent/libuv/blob/master/src/unix/stream.c#L1389

----------------
r = uv_write(&req, stream, bufs, nbufs, uv_try_write_cb);
----------------

May I understand how it is possible that such a code uses the address
of a variable allocated in the stack (req) as function argument?

In common usage, when we attach some stuff into req->data, I expect
that is 100% undesirable and a uv_req_t allocated in the heap is fully
required (in order to properly access req->data in the uv_write_cb),
am I right?

Thanks.

-- 
Iñaki Baz Castillo
<[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to