mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Communication: Increase max packet length
This commit is contained in:
committed by
Kyle Schwarz
parent
d42c51d772
commit
99792a0ee1
@@ -80,7 +80,7 @@ bool Packetizer::input(RingBuffer& bytes) {
|
|||||||
* end of the payload. The short packet length, for reference, only encompasses the length of the actual
|
* end of the payload. The short packet length, for reference, only encompasses the length of the actual
|
||||||
* payload, and not the header or checksum.
|
* payload, and not the header or checksum.
|
||||||
*/
|
*/
|
||||||
if(packetLength < 6 || packetLength > 4000) {
|
if(packetLength < 6 || packetLength > std::numeric_limits<uint16_t>::max()) {
|
||||||
bytes.pop_front();
|
bytes.pop_front();
|
||||||
EventManager::GetInstance().add(APIEvent::Type::FailedToRead, APIEvent::Severity::Error);
|
EventManager::GetInstance().add(APIEvent::Type::FailedToRead, APIEvent::Severity::Error);
|
||||||
state = ReadState::SearchForHeader;
|
state = ReadState::SearchForHeader;
|
||||||
|
|||||||
Reference in New Issue
Block a user