Thanks again for the input. With utilizing uv_poll*, I seem to have a working setup. I wasn't quite so sure that uv_poll would yield a good result (since it still makes me think of classic pull methods), but it seems to work nicely, at least on Mac OS.
-Joe On Monday, March 17, 2014 8:48:14 AM UTC-5, Saúl Ibarra Corretgé wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I think you are better off using uv_poll_t handles. If the library > (postgres in this case) fiddles with the fd, it could enter an > inconsistent state, might be closed without you knowing, for example. > > On unices uv_poll_t is a thin wrapper on top of epoll/kequeue/devports > and on Windows it uses some black magic you probably don't want to > know about :-P So, you should be fine using uv_poll_t. As an example, > Node uses uv_poll_t to integrate with c-ares. > > > Cheers, > > - -- > Saúl Ibarra Corretgé > bettercallsaghul.com > > -- 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.
