From: Wouter Wijngaards Date: Tue, 15 Jan 2019 09:24:00 +0000 (+0000) Subject: - In the out of order processing, reset byte count for (potential) X-Git-Tag: release-1.9.0rc1~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb480068fa370c8ecd38a3839833060081c8cbae;p=thirdparty%2Funbound.git - In the out of order processing, reset byte count for (potential) partial read. git-svn-id: file:///svn/unbound/trunk@5034 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 2959b7f0e..09e4d96c0 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +15 January 2018: Wouter + - In the out of order processing, reset byte count for (potential) + partial read. + 14 January 2018: Wouter - streamtcp option -a send queries consecutively and prints answers as they arrive. diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index 9cfc65b6a..7db018f6d 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -1669,6 +1669,8 @@ int tcp_req_info_handle_read_close(struct tcp_req_info* req) { verbose(VERB_ALGO, "tcp channel read side closed %d", req->cp->fd); + /* reset byte count for (potential) partial read */ + req->cp->tcp_byte_count = 0; /* if we still have results to write, pick up next and write it */ if(req->num_done_req != 0) { tcp_req_pickup_next_result(req);