From 7c4e5e5facf745bae1751dcade213c80a3d4b7ba Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 7 Mar 2002 18:46:12 +0000 Subject: [PATCH] better test to see if a large message will fit in the old buffer --- src/ca/tcpiiu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ca/tcpiiu.cpp b/src/ca/tcpiiu.cpp index 4bf3a77a8..774cefcc6 100644 --- a/src/ca/tcpiiu.cpp +++ b/src/ca/tcpiiu.cpp @@ -1051,7 +1051,7 @@ inline void insertRequestWithPayLoad ( maxBytes = 0xffffffff; } else { - maxBytes = MAX_TCP; + maxBytes = MAX_TCP - 16u; // allow space for protocol header } unsigned maxElem = ( maxBytes - dbr_size[dataType] ) / dbr_value_size[dataType]; if ( nElem >= maxElem ) {