Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Dec 29, 2023
1 parent 8e44180 commit 3fd1dad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/secure_tunneling.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,7 @@ static void s_secure_tunnel_websocket_fail_setup(

AWS_FATAL_ASSERT(aws_event_loop_thread_is_callers_thread(secure_tunnel->loop));

/* Report a failed WebSocket Upgrade attempt */
if (secure_tunnel->config->on_connection_complete) {
secure_tunnel->config->on_connection_complete(NULL, error_code, secure_tunnel->config->user_data);
}
Expand Down Expand Up @@ -1117,6 +1118,8 @@ void s_secure_tunnel_websocket_shutdown_task_fn(struct aws_task *task, void *arg
aws_mem_release(shutdown_task->allocator, shutdown_task);
}

/* Called on failed WebSocket setup attempt. Ensures that the actual failed setup logic is executed on the secure
* tunnel's event loop. */
static void s_on_websocket_setup_failed(
struct aws_websocket *websocket,
int error_code,
Expand Down

0 comments on commit 3fd1dad

Please sign in to comment.