Skip to content

Commit

Permalink
small changes/settings
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Mar 31, 2024
1 parent a6a165e commit df99fd9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tunnels/client/http2/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "types.h"

#define MAX_CONCURRENT_STREAMS 0xffffffffu
#define MAX_CHILD_PER_STREAM 3
#define MAX_CHILD_PER_STREAM 400

#define STATE(x) ((http2_client_state_t *)((x)->state))
#define CSTATE(x) ((void *)((((x)->line->chains_state)[self->chain_index])))
Expand Down
2 changes: 2 additions & 0 deletions tunnels/client/http2/http2_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ static int on_frame_recv_callback(nghttp2_session *session,
tunnel_t *dest = stream->tunnel;
remove_stream(con, stream);
delete_http2_stream(stream);
CSTATE_MUT(fc) = NULL;

dest->downStream(dest, fc);

return 0;
Expand Down
3 changes: 3 additions & 0 deletions tunnels/server/http2/http2_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ static int on_frame_recv_callback(nghttp2_session *session,
tunnel_t *dest = stream->tunnel;
remove_stream(con, stream);
delete_http2_stream(stream);
CSTATE_MUT(fc) = NULL;

dest->upStream(dest, fc);
return 0;
}
Expand Down Expand Up @@ -403,6 +405,7 @@ static inline void downStream(tunnel_t *self, context_t *c)
nghttp2_session_set_stream_user_data(con->session, stream->stream_id, NULL);
remove_stream(con, stream);
delete_http2_stream(stream);
CSTATE_MUT(c) = NULL;

while (trySendResponse(self, con, 0, NULL, NULL))
if (!ISALIVE(c))
Expand Down

0 comments on commit df99fd9

Please sign in to comment.