File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ using namespace chip::Encoding;
43
43
constexpr size_t kPacketSizeBytes = 2 ;
44
44
45
45
// TODO: Actual limit may be lower (spec issue #2119)
46
- constexpr uint16_t kMaxMessageSize = static_cast <uint16_t >(System::PacketBuffer:: kMaxSizeWithoutReserve - kPacketSizeBytes );
46
+ constexpr uint32_t kMaxTCPMessageSize = static_cast <uint32_t >(CHIP_CONFIG_LARGE_PAYLOAD_MAX_SIZE - kPacketSizeBytes );
47
47
48
48
constexpr int kListenBacklogSize = 2 ;
49
49
@@ -273,7 +273,7 @@ CHIP_ERROR TCPBase::ProcessReceivedBuffer(Inet::TCPEndPoint * endPoint, const Pe
273
273
return err;
274
274
}
275
275
uint16_t messageSize = LittleEndian::Get16 (messageSizeBuf);
276
- if (messageSize >= kMaxMessageSize )
276
+ if (messageSize >= kMaxTCPMessageSize )
277
277
{
278
278
// This message is too long for upper layers.
279
279
return CHIP_ERROR_MESSAGE_TOO_LONG;
You can’t perform that action at this time.
0 commit comments