From: Kees Monshouwer Date: Fri, 12 Jul 2013 14:11:40 +0000 (+0200) Subject: bump TCP receice buffer to maximum size X-Git-Tag: rec-3.6.0-rc1~556^2~3^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ac5be20fd98e410cf07ba934545ada13838643f;p=thirdparty%2Fpdns.git bump TCP receice buffer to maximum size --- diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index dc30d9d615..318da88371 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -241,7 +241,7 @@ void *TCPNameserver::doConnection(void *data) pthread_detach(pthread_self()); Utility::setNonBlocking(fd); try { - char mesg[512]; + char mesg[65535]; DLOG(L<<"TCP Connection accepted on fd "<511) { + if(pktlen>sizeof(mesg)) { L<