4075. [bug] Increase nsupdate's input buffer to accomodate

very large RRs. [RT #38689]
This commit is contained in:
Mark Andrews
2015-02-27 12:26:58 +11:00
parent 96d8c8e0af
commit 36b67292b3
5 changed files with 32 additions and 2 deletions
+3
View File
@@ -1,3 +1,6 @@
4075. [bug] Increase nsupdate's input buffer to accomodate
very large RRs. [RT #38689]
4074. [cleanup] Cleaned up more warnings from gcc -Wshadow. [RT #38708]
4073. [cleanup] Add libjson-c version number reporting to
+1 -1
View File
@@ -2782,7 +2782,7 @@ void
ns_client_logv(ns_client_t *client, isc_logcategory_t *category,
isc_logmodule_t *module, int level, const char *fmt, va_list ap)
{
char msgbuf[2048];
char msgbuf[4096];
char peerbuf[ISC_SOCKADDR_FORMATSIZE];
char signerbuf[DNS_NAME_FORMATSIZE], qnamebuf[DNS_NAME_FORMATSIZE];
const char *viewname = "";
+1 -1
View File
@@ -106,7 +106,7 @@ extern int h_errno;
#endif
#endif
#define MAXCMD (4 * 1024)
#define MAXCMD (128 * 1024)
#define MAXWIRE (64 * 1024)
#define PACKETSIZE ((64 * 1024) - 1)
#define INITTEXT (2 * 1024)
+11
View File
@@ -532,5 +532,16 @@ if [ $ret -ne 0 ]; then
status=1
fi
n=`expr $n + 1`
ret=0
echo "I:add a very large record. ($n)"
$NSUPDATE verylarge || ret=1
$DIG +noedns +tcp @10.53.0.1 -p 5300 txt txt.update.nil > dig.out.ns1.test$n
grep "ANSWER: 1," dig.out.ns1.test$n > /dev/null || ret=1
if [ $ret -ne 0 ]; then
echo "I:failed"
status=1
fi
echo "I:exit status: $status"
exit $status
File diff suppressed because one or more lines are too long