mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-23 16:20:26 -05:00
- Fix that tcp for auth zone and outgoing does not remove and
then gets the ssl read again applied to the deleted commpoint. git-svn-id: file:///svn/unbound/trunk@5074 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
20d5e35576
commit
f11d6653d6
2 changed files with 8 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
25 January 2018: Wouter
|
||||||
|
- Fix that tcp for auth zone and outgoing does not remove and
|
||||||
|
then gets the ssl read again applied to the deleted commpoint.
|
||||||
|
|
||||||
24 January 2018: Wouter
|
24 January 2018: Wouter
|
||||||
- Newer aclocal and libtoolize used for generating configure scripts,
|
- Newer aclocal and libtoolize used for generating configure scripts,
|
||||||
aclocal 1.16.1 and libtoolize 2.4.6.
|
aclocal 1.16.1 and libtoolize 2.4.6.
|
||||||
|
|
|
||||||
|
|
@ -1739,6 +1739,7 @@ comm_point_tcp_handle_callback(int fd, short event, void* arg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(event&UB_EV_READ) {
|
if(event&UB_EV_READ) {
|
||||||
|
int has_tcpq = (c->tcp_req_info != NULL);
|
||||||
if(!comm_point_tcp_handle_read(fd, c, 0)) {
|
if(!comm_point_tcp_handle_read(fd, c, 0)) {
|
||||||
reclaim_tcp_handler(c);
|
reclaim_tcp_handler(c);
|
||||||
if(!c->tcp_do_close) {
|
if(!c->tcp_do_close) {
|
||||||
|
|
@ -1748,11 +1749,12 @@ comm_point_tcp_handle_callback(int fd, short event, void* arg)
|
||||||
NETEVENT_CLOSED, NULL);
|
NETEVENT_CLOSED, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(c->tcp_req_info && c->tcp_req_info->read_again)
|
if(has_tcpq && c->tcp_req_info && c->tcp_req_info->read_again)
|
||||||
tcp_req_info_read_again(fd, c);
|
tcp_req_info_read_again(fd, c);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(event&UB_EV_WRITE) {
|
if(event&UB_EV_WRITE) {
|
||||||
|
int has_tcpq = (c->tcp_req_info != NULL);
|
||||||
if(!comm_point_tcp_handle_write(fd, c)) {
|
if(!comm_point_tcp_handle_write(fd, c)) {
|
||||||
reclaim_tcp_handler(c);
|
reclaim_tcp_handler(c);
|
||||||
if(!c->tcp_do_close) {
|
if(!c->tcp_do_close) {
|
||||||
|
|
@ -1762,7 +1764,7 @@ comm_point_tcp_handle_callback(int fd, short event, void* arg)
|
||||||
NETEVENT_CLOSED, NULL);
|
NETEVENT_CLOSED, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(c->tcp_req_info && c->tcp_req_info->read_again)
|
if(has_tcpq && c->tcp_req_info && c->tcp_req_info->read_again)
|
||||||
tcp_req_info_read_again(fd, c);
|
tcp_req_info_read_again(fd, c);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue