Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cluster singleton zero buffer size to disable buffering #4769

Merged
merged 8 commits into from
Feb 11, 2021

Conversation

IgorFedchenko
Copy link
Contributor

Closes #4763

@IgorFedchenko IgorFedchenko marked this pull request as ready for review February 9, 2021 07:53
if (bufferSize <= 0)
throw new ArgumentException("bufferSize must be positive", nameof(bufferSize));
if (bufferSize < 0)
throw new ArgumentException("bufferSize must not be negative", nameof(bufferSize));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 0 value is actually supported in the code:

So this is just a minor validation issue.

@@ -30,40 +30,38 @@ public class ReceiveTimeoutSpecs : TestKit
public class CheckTimeout : INotInfluenceReceiveTimeout { }
public class ReceiveTimeoutActor : ReceiveActor
{
private bool _timedOut = false;
private readonly TimeSpan _inactivityTimeout;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, I will fix this racy spec in separate PR: #4775

@IgorFedchenko
Copy link
Contributor Author

PR is sometimes passing, sometimes fails on some racy queries - but it is ready for review and merge I think.

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) February 11, 2021 14:00
@Aaronontheweb Aaronontheweb merged commit d21e4f7 into akkadotnet:dev Feb 11, 2021
@IgorFedchenko IgorFedchenko deleted the fix-buffer-size branch February 11, 2021 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

on singleton-proxy setting buffer-size to 0 via Hocon fail on exception
2 participants