]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- In the out of order processing, reset byte count for (potential)
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 15 Jan 2019 09:24:00 +0000 (09:24 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 15 Jan 2019 09:24:00 +0000 (09:24 +0000)
  partial read.

git-svn-id: file:///svn/unbound/trunk@5034 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/listen_dnsport.c

index 2959b7f0e59c11ab964e328018fe7eb27d664ab6..09e4d96c08de506bdb4a146c3f90c78ede30ac6e 100644 (file)
@@ -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.
index 9cfc65b6a1d403ef4a8ae753129bc71c09b42697..7db018f6df75af69504efd0b8a2f10aed3782ee4 100644 (file)
@@ -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);