mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 13:24:43 -04:00
Merge remote-tracking branch 'origin/patches-2.0'
This commit is contained in:
commit
ef820dbfb3
6
evdns.c
6
evdns.c
@ -2242,6 +2242,12 @@ evdns_request_transmit(struct request *req) {
|
|||||||
req->transmit_me = 1;
|
req->transmit_me = 1;
|
||||||
EVUTIL_ASSERT(req->trans_id != 0xffff);
|
EVUTIL_ASSERT(req->trans_id != 0xffff);
|
||||||
|
|
||||||
|
if (!req->ns)
|
||||||
|
{
|
||||||
|
/* unable to transmit request if no nameservers */
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (req->ns->choked) {
|
if (req->ns->choked) {
|
||||||
/* don't bother trying to write to a socket */
|
/* don't bother trying to write to a socket */
|
||||||
/* which we have had EAGAIN from */
|
/* which we have had EAGAIN from */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user