diff --git a/src/JsonRpc/ProcessScheduler.cs b/src/JsonRpc/ProcessScheduler.cs index ae0da9171..b810dcc77 100644 --- a/src/JsonRpc/ProcessScheduler.cs +++ b/src/JsonRpc/ProcessScheduler.cs @@ -34,7 +34,7 @@ IScheduler scheduler var observableQueue = new BehaviorSubject<(RequestProcessType type, ReplaySubject> observer, Subject? contentModifiedSource)>( - ( RequestProcessType.Serial, new ReplaySubject>(int.MaxValue, Scheduler.Immediate), supportContentModified ? new Subject() : null ) + ( RequestProcessType.Serial, new ReplaySubject>(TimeSpan.FromSeconds(6), Scheduler.Immediate), supportContentModified ? new Subject() : null ) ); cd.Add( @@ -52,7 +52,7 @@ IScheduler scheduler logger.LogDebug("Completing existing request process type {Type}", observableQueue.Value.type); observableQueue.Value.observer.OnCompleted(); - observableQueue.OnNext(( item.type, new ReplaySubject>(int.MaxValue, Scheduler.Immediate), supportContentModified ? new Subject() : null )); + observableQueue.OnNext(( item.type, new ReplaySubject>(TimeSpan.FromSeconds(6), Scheduler.Immediate), supportContentModified ? new Subject() : null )); } logger.LogDebug("Queueing {Type}:{Name} request for processing", item.type, item.name);