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

fix: make sure write events go out as soon as they can #1354

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/dpp/sslclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ void ssl_client::socket_write(const std::string_view data) {
*/
std::lock_guard<std::mutex> lock(out_mutex);
obuffer += data;
owner->socketengine->inplace_modify_fd(sfd, WANT_WRITE);
}

void ssl_client::one_second_timer() {
Expand Down
2 changes: 0 additions & 2 deletions src/dpp/wsclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ void websocket_client::write(const std::string_view data, ws_opcode _opcode)
ssl_client::socket_write(header);
ssl_client::socket_write(data);
}

owner->socketengine->inplace_modify_fd(sfd, WANT_WRITE);
}

bool websocket_client::handle_buffer(std::string& buffer)
Expand Down
Loading