mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-05 21:29:23 -04:00
Create 2 #define in pqistreamer to easily disable packet slicing/grouping
This commit is contained in:
parent
192cbe1eda
commit
78d6735b52
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue