Increase maximum input queue size
This commit is contained in:
parent
132833deeb
commit
1b3c14a792
1 changed files with 3 additions and 1 deletions
|
|
@ -31,7 +31,9 @@ typedef struct _PACKET_HOLDER {
|
||||||
int initializeInputStream(void) {
|
int initializeInputStream(void) {
|
||||||
memcpy(currentAesIv, StreamConfig.remoteInputAesIv, sizeof(currentAesIv));
|
memcpy(currentAesIv, StreamConfig.remoteInputAesIv, sizeof(currentAesIv));
|
||||||
|
|
||||||
LbqInitializeLinkedBlockingQueue(&packetQueue, 30);
|
// Set a high maximum queue size limit to ensure input isn't dropped
|
||||||
|
// while the input send thread is blocked for short periods.
|
||||||
|
LbqInitializeLinkedBlockingQueue(&packetQueue, 150);
|
||||||
|
|
||||||
cryptoContext = PltCreateCryptoContext();
|
cryptoContext = PltCreateCryptoContext();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue