Skip to content

Commit

Permalink
fixes/tets
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Mar 31, 2024
1 parent 801f841 commit ec883bc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion tunnels/client/http2/http2_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ static int on_data_chunk_recv_callback(nghttp2_session *session,
stream_data->payload = gdata_buf;
stream_data->src_io = con->io;
stream->tunnel->downStream(stream->tunnel, stream_data);
continue;

if (nghttp2_session_get_stream_user_data(session, stream_id))
continue;
}
break;
}
Expand Down
3 changes: 1 addition & 2 deletions tunnels/client/protobuf/protobuf_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define CSTATE_MUT(x) ((x)->line->chains_state)[self->chain_index]
#define ISALIVE(x) (CSTATE(x) != NULL)


typedef struct protobuf_client_state_s
{

Expand Down Expand Up @@ -128,7 +127,7 @@ static inline void downStream(tunnel_t *self, context_t *c)
LOGE("ProtoBufServer: rejected, size too large");
DISCARD_CONTEXT(c);
cleanup(cstate);
CSTATE_MUT(c) = NULL;
CSTATE_MUT(c) = NULL;

self->dw->downStream(self->dw, newFinContext(c->line));
self->up->upStream(self->up, newFinContext(c->line));
Expand Down
2 changes: 0 additions & 2 deletions tunnels/server/http2/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ create_http2_stream(http2_server_con_state_t *con, line_t *this_line, tunnel_t *
static void delete_http2_stream(http2_server_child_con_state_t *stream)
{



stream->line->chains_state[stream->tunnel->chain_index - 1] = NULL;
destroyBufferStream(stream->chunkbs);
destroyLine(stream->line);
Expand Down
4 changes: 3 additions & 1 deletion tunnels/server/http2/http2_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ static int on_data_chunk_recv_callback(nghttp2_session *session,
stream_data->payload = gdata_buf;
stream_data->src_io = con->io;
stream->tunnel->upStream(stream->tunnel, stream_data);
continue;

if (nghttp2_session_get_stream_user_data(session, stream_id))
continue;
}
break;
}
Expand Down

0 comments on commit ec883bc

Please sign in to comment.