Skip to content
Snippets Groups Projects
Commit dc5c2a7a authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Raise 'connecting' flag for UDP requests as well.

This is because the query should be sent as soon as the socket is
writable as well.

refs #65
parent 18c0c351
No related branches found
No related tags found
No related merge requests found
......@@ -271,10 +271,11 @@ static int xfr_task_connect(knot_ns_xfr_t *rq)
socket_close(fd);
return KNOT_ECONNREFUSED;
}
rq->flags |= XFR_FLAG_CONNECTING;
}
/* Set up for UDP as well to trigger 'send query' event. */
rq->flags |= XFR_FLAG_CONNECTING;
/* Store new socket descriptor. */
rq->session = fd;
return KNOT_EOK;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment