Increase maximum input queue size

This commit is contained in:
Cameron Gutman 2021-05-14 21:07:14 -05:00
parent 132833deeb
commit 1b3c14a792

View File

@ -31,7 +31,9 @@ typedef struct _PACKET_HOLDER {
int initializeInputStream(void) {
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();
return 0;