Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Jun 14, 2024
1 parent b6b3469 commit 1fb022c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions tunnels/server/halfduplex/halfduplex_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ static void onMainLinePaused(void *_cstate)
{
pipeOnUpLinePaused(cstate->pipe);
}
else
{
pauseLineDownSide(cstate->upload_line);
}
pauseLineDownSide(cstate->download_line);
}

Expand All @@ -79,6 +83,10 @@ static void onMainLineResumed(void *_cstate)
{
pipeOnUpLineResumed(cstate->pipe);
}
else
{
resumeLineDownSide(cstate->upload_line);
}
resumeLineDownSide(cstate->download_line);
}

Expand Down
6 changes: 6 additions & 0 deletions tunnels/server/reality/reality_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ static void upStream(tunnel_t *self, context_t *c)

context_t *plain_data_ctx = newContextFrom(c);
plain_data_ctx->payload = buf;

if (WW_UNLIKELY(! cstate->init_sent))
{
plain_data_ctx->first = true;
cstate->init_sent = true;
}
self->up->upStream(self->up, plain_data_ctx);
}
else
Expand Down
1 change: 0 additions & 1 deletion tunnels/server/reverse/reverse_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ static void upStream(tunnel_t *self, context_t *c)
setupLineUpSide(ucstate->u, onLinePausedU, ucstate, onLineResumedU);
setupLineUpSide(ucstate->d, onLinePausedD, ucstate, onLineResumedD);

cleanup(CSTATE_D(c));
CSTATE_D_MUT(c) = ucstate;
(ucstate->u->chains_state)[state->chain_index_u] = ucstate;

Expand Down
2 changes: 1 addition & 1 deletion ww/loggers/network_logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ static inline void setNetworkLoggerLevelByStr(const char *log_level)
logger_set_level_by_str(getNetworkLogger(), log_level);
}

logger_handler getNetworkLoggerHandle(void);
logger_handler getNetworkLoggerHandle(void);

0 comments on commit 1fb022c

Please sign in to comment.