Skip to content

Commit

Permalink
Update control.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mobin-2008 authored Jul 25, 2023
1 parent 865ccb6 commit bc479ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/includes/control.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,6 @@ inline dasynq::rearm control_conn_cb(eventloop_t * loop, control_conn_watcher *
control_conn_t *conn = reinterpret_cast<control_conn_t *>(cc_addr);
_Pragma ("GCC diagnostic pop")

constexpr int outbuf_limit = 16384 // 16KB

if (revents & dasynq::IN_EVENTS) {
if (conn->data_ready()) {
delete conn;
Expand All @@ -253,6 +251,7 @@ inline dasynq::rearm control_conn_cb(eventloop_t * loop, control_conn_watcher *
}
}

constexpr int outbuf_limit = 16384; // 16KB
int watch_flags = 0;
if (!conn->bad_conn_close && conn->outbuf_size < outbuf_limit) {
watch_flags |= dasynq::IN_EVENTS;
Expand Down

0 comments on commit bc479ee

Please sign in to comment.