mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix that tcp sticky events are removed for closed fd on windows.
git-svn-id: file:///svn/unbound/trunk@4694 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
b9607297e9
commit
d4ba7731ad
2 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
25 May 2018: Wouter
|
||||
- For TCP and TLS connections that don't establish, perform address
|
||||
update in infra cache, so future selections can exclude them.
|
||||
- Fix that tcp sticky events are removed for closed fd on windows.
|
||||
|
||||
24 May 2018: Wouter
|
||||
- Fix that libunbound can do DNS-over-TLS, when configured.
|
||||
|
|
|
|||
|
|
@ -2900,10 +2900,14 @@ comm_point_close(struct comm_point* c)
|
|||
{
|
||||
if(!c)
|
||||
return;
|
||||
if(c->fd != -1)
|
||||
if(c->fd != -1) {
|
||||
if(ub_event_del(c->ev->ev) != 0) {
|
||||
log_err("could not event_del on close");
|
||||
}
|
||||
/* delete sticky events for the fr, it gets closed */
|
||||
ub_winsock_tcp_wouldblock(c->ev->ev, UB_EV_READ);
|
||||
ub_winsock_tcp_wouldblock(c->ev->ev, UB_EV_WRITE);
|
||||
}
|
||||
/* close fd after removing from event lists, or epoll.. is messed up */
|
||||
if(c->fd != -1 && !c->do_not_close) {
|
||||
verbose(VERB_ALGO, "close fd %d", c->fd);
|
||||
|
|
|
|||
Loading…
Reference in a new issue