Skip to content

Commit

Permalink
disable counter pause on http2
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Jun 15, 2024
1 parent 08d6fed commit 7720e86
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tunnels/server/http2/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,22 @@ static void onStreamLineResumed(void *arg)
static void onH2LinePaused(void *arg)
{
http2_server_con_state_t *con = (http2_server_con_state_t *) arg;
++(con->pause_counter);
if (con->pause_counter > 8)
// ++(con->pause_counter);
// if (con->pause_counter > 8)
// {
http2_server_child_con_state_t *stream_i;
for (stream_i = con->root.next; stream_i;)
{
http2_server_child_con_state_t *stream_i;
for (stream_i = con->root.next; stream_i;)
{
pauseLineUpSide(stream_i->line);
stream_i = stream_i->next;
}
pauseLineUpSide(stream_i->line);
stream_i = stream_i->next;
}
// }
}

static void onH2LineResumed(void *arg)
{
http2_server_con_state_t *con = (http2_server_con_state_t *) arg;
con->pause_counter = con->pause_counter > 0 ? (con->pause_counter - 1) : con->pause_counter;
// con->pause_counter = con->pause_counter > 0 ? (con->pause_counter - 1) : con->pause_counter;
http2_server_child_con_state_t *stream_i;
for (stream_i = con->root.next; stream_i;)
{
Expand Down

0 comments on commit 7720e86

Please sign in to comment.