-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/11/2014 12:24 PM, Ashish wrote: > > > Is there any chance that libuv will never invoke callback for > uv_write (which writes to socket and returns 0 so successful) ? > > > [Background: In my server code I do uv_write and increase a counter > by number of bytes written. And in the callback I decrease the > counter. Thus I make sure I do uv_write only when counter is less > than certain value (e.g. 1 mega bytes). This avoids overflows. But > sometime I observed, I never receive callback despite that > uv_write was successful. Unfortunately I am not able to narrow it > down to exactly what causing it to happen (e.g. when uv_write was > success but receiver terminated abruptly thereafter... but its just > a wild guess)] >
Theoretically that's not possible, the callback will always get called if uv_write returned 0. If you can come up with a reproducible test case we could investigate... - -- Saúl Ibarra Corretgé bettercallsaghul.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBAgAGBQJTmDPqAAoJEEEOVVOum8BZ2rUP/2JyCbQgmKtBqwwZNl3qr+p9 CqCrmDURfl0/QzFU+V2mle7GLBkTvNYXQ9i2wJmFbqZJIbkBhl88P5tjBMsZobjp 9nM6TGCzYgIO41PqMo/wJcKwSNLGpfvKURnIQTE3AVsXl7QLhi2gSltsOIPLOkH9 uVqPoPUqqPaa97QODL60yRmJE2WJRQNBj0qDTB2dzZXPePwGBMRzW4b45K1ETmTK 7Hyiel1SmIWb3t9BUwLdwIsJgzTDhOEN9KCOyU7KaJMR6FUrTnCHY1Lt3FamwD6z ZU8jARhE05Ybk9ELNMSSyObxbspSqWGdsCbFRzLn6RPag+OB1rvX12Y98Ad0sqD2 dFHAYVUuxkYgQIL5LwVrJnATt6x/lPXf7QeOltOlrTphNjjb/9M5gCFCNfen0OXx kDKjEXHKo2CTKCurIv6C2wU7Lf4YSb4qkyMEC2r0h8Ar4bF+VuYZb7tQs2X+oZV3 v2G2f7E+BzlQ9q9rcShdoTop58oYC5U2Dw5rahhHToeUwXQ27CuStaGFt2SGWMPg bOgBrTPBfODzJU3qfdrdCeHRMggm5tN4z1O661c837IzeJv5Lu0iaoJ/nfuY13q1 Wk55cwHEUOxF9am/LUvu9qIzk7QVdL+PPBazD2HkgIfh6YWeoDj2KOKp4axvOYyf NUQM7p+E+PeqNSGd3XwK =Vien -----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.
