-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/17/2014 12:02 AM, Akhil Arora wrote:
> On 7/9/2014 12:40 AM, Saúl Ibarra Corretgé wrote:
>>> On 7/8/2014 1:19 PM, Saúl Ibarra Corretgé wrote:
>>>> 
>>>> Can you try this patch? 
>>>> https://gist.github.com/saghul/a2da3e48433006669c43
>>> 
>>> The artificial ENOTCONN error went away, but data written by
>>> the client is not received - the read callback is never
>>> called.
>>> 
>> 
>> Doh. I don't use uv_tcp_open like this, and it wasn't really
>> intended to be used that way... you'll have to dig inside libuv
>> to figure it out, sorry!
> 
> Well IMHO a tcp handle should behave consistent across platforms, 
> regardless of how it was constructed.
> 

Things are more complicated than that unfortunately. But patches are
always welcome ;-)

> Related question - as a workaround, is it possible to register an 
> external fd/socket with libuv twice? Once with uv_tcp_open and
> again as a poll handle (for read notifications)?
> 

Nope, that won't work. It actually might, on Windows, but it's not
guaranteed. IMHO you are better off using a poll handle and doing the
reads and writes manually.


Cheers,

- -- 
Saúl Ibarra Corretgé
bettercallsaghul.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBAgAGBQJTxvrvAAoJEEEOVVOum8BZrkcQALzRs5yhIMOPj6RCwCDThHfN
cJB78fn1XpdoHxxJl5oZ8dgqEyPzHUIJVOllK7ga9MJ7X0qiuUyPoXDOf4liKuQ8
h25InCUe7YJ6NWNQkS6C+hCiRL6forSjh3YMpX8CxpuUTSsHGGJGZpER8J9E3hcf
iV9ehqxEVWErBBv7bIjSEQItRFQ6rwJ7l7i1n4b5YkaLOfyj5EthyUiwVKguJDLX
KKka48YWOczm80tB/kzQKLI90Vpuuo+D4svUyPOLitVnb/iij4x0o09OaS/0wlak
La5QhB4/MxsLa5qF05otSwEfz0JFwA4gzob7HcYdSgwsKW+z+3wL/ATEZ7UphuA4
x9bvEM1M5G4DFVDaV5AQ+3yMw4vDM2vBfQKVWsBh3+xirR8VkMkaTsLYevJp5fR4
wwnBAL3HpabsW50xn+kcjNyDaJbdnL6VEw+VNPTh7X8P15TXGQEAs7sdUKx3uqxr
AoaPPLh3uPAgOJNcnFLKE7226XDbpx8rNnX00+1m7xZLc79KhA/qS82h2fDD1/VZ
dT6K7lHuCOgEUT0Ag3ZSJd85MtGrW5YeCw6Iz8HLTx1Rkm+43BJHYaPYff3G+ETm
z7gSTRuB5kpjBSzdUJLRdAEGDaJsRSrMp1bg7r2EaOwLRWI6C/jfpvZ8bRPPr7Rq
l4KCacxIcGsKbE81IL0d
=YoVo
-----END PGP SIGNATURE-----

-- 
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