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

Notify client when Server's send buffer limit has been reached #201

Merged
merged 3 commits into from
Mar 27, 2023

Conversation

achim-k
Copy link
Collaborator

@achim-k achim-k commented Mar 23, 2023

Public-Facing Changes

  • Notify client when Server's send buffer limit has been reached

Description

Rather than only logging a message, the client is now also informed when the server is about to drop messages due to the send buffer limit being exceeded. See #174 (comment)

2500);
const auto logFn = [this, clientHandle]() {
sendStatusAndLogMsg(clientHandle, StatusLevel::Warning,
"Connection send buffer limit reached, messages will be dropped...");
Copy link
Contributor

Choose a reason for hiding this comment

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

As a user I'd find it more helpful if this said something like "Server send buffer full. Dropping message on topic /foo/bar".

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree that this would be more helpful, but due to log debounce, you wouldn't see it for every topic for which messages are dropped

Copy link
Contributor

@defunctzombie defunctzombie left a comment

Choose a reason for hiding this comment

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

Before we merge and release this - we need to talk through (or experiment/experience) what the client side will look like with this new message spam. My read of the way things are implemented here is if we turned every warning/error status into a "player problem" in Studio we will quickly fill up the list of problems and overrun the user.

@achim-k achim-k merged commit 0bf51bc into main Mar 27, 2023
@achim-k achim-k deleted the achim/notify_client_buffer_limit branch March 27, 2023 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants