-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/21/2014 11:07 AM, Iñaki Baz Castillo wrote: > 2014-07-21 11:01 GMT+02:00 Iñaki Baz Castillo <[email protected]>: >> 2014-07-21 10:57 GMT+02:00 Iñaki Baz Castillo <[email protected]>: >>> Note that I don't even call uv_run(). Is it guaranteed that >>> uv_udp_bind() would return error in case of giving it an >>> address in which the host cannot bind? >> >> Also, since I don't even call to uv_run(), do I need to call >> uv_loop_close() ? > > > Well, it returns UV_EBUSY, so I understand I don't need to do > nothing to free any loop resources, right? >
If uv_loop_close returns UV_EBUSY it means you cannot free the resources because the loop is in use. If you fail to bind the udp handle you need to uv_close it, run the loop so the close callbacks are run, and then close the loop. - -- Saúl Ibarra Corretgé bettercallsaghul.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBAgAGBQJTzNuuAAoJEEEOVVOum8BZzjcP/1/jWQEZnEXZ7f4HoVFnt0ea QPnWDo5dLfS7Vfs0oEVr2mVnQVK8uCpd8HcCTwvB6j8x0Ukb1ElTjDszg/vFNXlU yTQfQUt/3WeRsOD8meerMuSq+1vJavoaIdErXj60NVLF7CD9n3YDUNkEw8hYY4D5 9FCxEiDIbYZnju30OCopyVAlXDhdtxMOB4ylTt4TaEC1Ieo6pAdWALVYtrzes1z4 TXxvJZnZTnnskT22SObsR4I3LSPC3O9ywBUEc3XHqrVor1nm3c1L5FueQNACjucc cSycW7dj5zJZIwuz7apqXn34/KQKMon1dnijrHY6AIWyhrLbENIvH4aQb578d1hB byNbEiL9tfAmPfe7ziVNhfYjmiPJqldLXqZB/QeOui2WRT/xcr011+oM4nTZmZ7A Bk9DKABCrbI4uFHgJrflKAsWfR9GehJ3L4IZL6MeS4vQH8QxISMlwdr/yZUwzirM WQxYG4r/H1QNaoXHX/WxrfCNfasup93YPpGFTIgBuZClOmhH32pMuQbIb4FDdXtu MFGBYvNly8Dtx2GhUk6leFLyibCdcBIzjRLTycFxf3mEvFy/K4H6xwJ6ZiaPS8O1 EaenGfs5QbEjzNtG44huQoaSJ/RjexKEM08PmhYAFCxpXXAFI9hxm0rB9VmvYUYH XuQVH4xwYb7j+XtVJ6qW =QKSf -----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.
