Skip to content

Commit

Permalink
keepalive at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed May 15, 2024
1 parent fff311a commit 1f81d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tunnels/adapters/listener/tcp/tcp_listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ static void downStream(tunnel_t *self, context_t *c)
{
assert(! cstate->established);
cstate->established = true;
hio_set_keepalive_timeout(cstate->io, kDefaultKeepAliveTimeOutMs);
destroyContext(c);
return;
}
Expand Down Expand Up @@ -259,6 +258,7 @@ static void onInboundConnected(hevent_t *ev)
hio_t *io = data->io;
size_t tid = data->tid;
hio_attach(loop, io);
hio_set_keepalive_timeout(io, kDefaultKeepAliveTimeOutMs);

tunnel_t *self = data->tunnel;
line_t *line = newLine(tid);
Expand Down

0 comments on commit 1f81d93

Please sign in to comment.