If you are not redirected automatically, follow this link to uint32_t getdns_context_get_num_pending_requests(const getdns_context *context, struct timeval *next_timeout).