@@ -163,7 +163,7 @@ export default class RpcServerManager {
163163 // for lower TTFB
164164 if (
165165 callerClientProtocol >= CLIENT_PROTOCOL_GZIP_RPC &&
166- responseBytes >= DATA_STREAM_MIN_BYTES
166+ responseBytes > DATA_STREAM_MIN_BYTES
167167 ) {
168168 const writer = await this . outgoingDataStreamManager . streamBytes ( {
169169 topic : RPC_DATA_STREAM_TOPIC ,
@@ -180,7 +180,7 @@ export default class RpcServerManager {
180180 // Medium response: compress inline
181181 if (
182182 callerClientProtocol >= CLIENT_PROTOCOL_GZIP_RPC &&
183- responseBytes >= COMPRESS_MIN_BYTES
183+ responseBytes > COMPRESS_MIN_BYTES
184184 ) {
185185 const compressed = await gzipCompress ( response ! ) ;
186186 await this . engine . publishRpcResponseCompressed ( callerIdentity , requestId , compressed ) ;
@@ -283,7 +283,7 @@ export default class RpcServerManager {
283283
284284 if (
285285 callerClientProtocol >= CLIENT_PROTOCOL_GZIP_RPC &&
286- responseBytes >= DATA_STREAM_MIN_BYTES
286+ responseBytes > DATA_STREAM_MIN_BYTES
287287 ) {
288288 // Large response: create the data stream tagged with the request ID,
289289 // send the RPC response with empty payload, then stream compressed chunks
@@ -301,7 +301,7 @@ export default class RpcServerManager {
301301
302302 if (
303303 callerClientProtocol >= CLIENT_PROTOCOL_GZIP_RPC &&
304- responseBytes >= COMPRESS_MIN_BYTES
304+ responseBytes > COMPRESS_MIN_BYTES
305305 ) {
306306 // Medium response: compress inline
307307 const compressed = await gzipCompress ( response ) ;
0 commit comments