Found the problem i'm using a wrong stream, should use a stream that i used in uv_connect, the uv_tcp_t, so when i casted to uv_stream_t, everything works with uv_write.
On Monday, January 27, 2014 6:47:55 PM UTC-2, Fedor Indutny wrote: > > Hi! > > Are you allocating `uv_write_t` on stack? Seems like so, could you try > using `malloc()` or `new uv_write_t` for it? > > On Tue, Jan 28, 2014 at 12:43 AM, Eduardo Nunes Pereira > <[email protected] <javascript:>> wrote: > > Hello, > > > > I tried so many ways to write, but all unsuccessful, my program is a TCP > > client and made a socket with success, connected, reads the first data > when > > connect, i made the uv_connect, uv_read and until that there is no > problem, > > but when gets the first uv_start_read with success, i'm the write fail > with > > an assertion Assertion failed: (req->handle == stream), function > uv__write, > > file src/unix/stream.c, line 739. Just to clarify just to clarify i'm > using > > the latest master version from git. > > > > -- > > 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] <javascript:>. > > To post to this group, send email to [email protected]<javascript:>. > > > Visit this group at http://groups.google.com/group/libuv. > > For more options, visit https://groups.google.com/groups/opt_out. > -- 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/groups/opt_out.
