Skip to content

Commit

Permalink
fix: make sure write events go out as soon as they can (#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis authored Dec 22, 2024
1 parent 531c451 commit 45a233a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
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

0 comments on commit 45a233a

Please sign in to comment.