mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
Don't retry truncated tcp sessions.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dighost.c,v 1.125 2000/09/13 00:55:13 mws Exp $ */
|
/* $Id: dighost.c,v 1.126 2000/09/13 08:02:11 marka Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Notice to programmers: Do not use this code as an example of how to
|
* Notice to programmers: Do not use this code as an example of how to
|
||||||
@@ -1988,7 +1988,7 @@ recv_done(isc_task_t *task, isc_event_t *event) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (((msg->flags & DNS_MESSAGEFLAG_TC) != 0)
|
if (((msg->flags & DNS_MESSAGEFLAG_TC) != 0)
|
||||||
&& ! l->ignore) {
|
&& ! l->ignore && !l->tcp_mode) {
|
||||||
printf(";; Truncated, retrying in TCP mode.\n");
|
printf(";; Truncated, retrying in TCP mode.\n");
|
||||||
n = requeue_lookup(l, ISC_TRUE);
|
n = requeue_lookup(l, ISC_TRUE);
|
||||||
n->tcp_mode = ISC_TRUE;
|
n->tcp_mode = ISC_TRUE;
|
||||||
|
Reference in New Issue
Block a user