Hi,
The attached patch (against c-ares 1.4.0) allows the client to set the socket
buffer sizes, as well as turning on TCP_NODELAY and the close-on-exec option.
(I'm a bit unsure how this will influence non-*nix support, but in the worst
case I'd guess they can simply be ifdef-ed out.)
Hopefully there are many more coming in time, but forward-porting, cleaning
up and separating out the ares patches we've been accumulating internally is
going to take a while. There are also new features that are by nature
API-changing (such as the ability to get the TTL of the returned records);
I'm a bit unsure what to do about them, but hopefully we'll be able to work
it out eventually.
/* Steinar */
-- Software Engineer, Google Norway