mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Create 2 #define in pqistreamer to easily disable packet slicing/grouping
This commit is contained in:
parent
192cbe1eda
commit
78d6735b52
@ -791,7 +791,7 @@ start_packet_read:
|
||||
|
||||
if(!memcmp(block,PACKET_SLICING_PROBE_BYTES,8))
|
||||
{
|
||||
mAcceptsPacketSlicing = (true && !DISABLE_PACKET_SLICING);
|
||||
mAcceptsPacketSlicing = !DISABLE_PACKET_SLICING;
|
||||
#ifdef DEBUG_PACKET_SLICING
|
||||
std::cerr << "(II) Enabling packet slicing!" << std::endl;
|
||||
#endif
|
||||
@ -819,7 +819,7 @@ continue_packet:
|
||||
#endif
|
||||
is_partial_packet = true ;
|
||||
|
||||
mAcceptsPacketSlicing = (true && !DISABLE_PACKET_SLICING); // this is needed
|
||||
mAcceptsPacketSlicing = !DISABLE_PACKET_SLICING; // this is needed
|
||||
}
|
||||
else
|
||||
extralen = getRsItemSize(block) - blen; // old style packet type
|
||||
|
Loading…
Reference in New Issue
Block a user