mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-25 17:21:27 -05: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))
|
if(!memcmp(block,PACKET_SLICING_PROBE_BYTES,8))
|
||||||
{
|
{
|
||||||
mAcceptsPacketSlicing = (true && !DISABLE_PACKET_SLICING);
|
mAcceptsPacketSlicing = !DISABLE_PACKET_SLICING;
|
||||||
#ifdef DEBUG_PACKET_SLICING
|
#ifdef DEBUG_PACKET_SLICING
|
||||||
std::cerr << "(II) Enabling packet slicing!" << std::endl;
|
std::cerr << "(II) Enabling packet slicing!" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
@ -819,7 +819,7 @@ continue_packet:
|
|||||||
#endif
|
#endif
|
||||||
is_partial_packet = true ;
|
is_partial_packet = true ;
|
||||||
|
|
||||||
mAcceptsPacketSlicing = (true && !DISABLE_PACKET_SLICING); // this is needed
|
mAcceptsPacketSlicing = !DISABLE_PACKET_SLICING; // this is needed
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
extralen = getRsItemSize(block) - blen; // old style packet type
|
extralen = getRsItemSize(block) - blen; // old style packet type
|
||||||
|
Loading…
x
Reference in New Issue
Block a user