Skip to content

Commit 1b0b9ab

Browse files
fix thread handle leak from event loop
1 parent d229db6 commit 1b0b9ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crt/aws-crt-cpp/crt/aws-c-io/source/event_loop.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ static struct aws_event_loop_group *s_event_loop_group_new(
120120
/* Don't pin to hyper-threads if a user cared enough to specify a NUMA node */
121121
if (!pin_threads || (i < group_cpu_count && !usable_cpus[i].suspected_hyper_thread)) {
122122
struct aws_thread_options thread_options = *aws_default_thread_options();
123+
// SNOW-2111927 custom changes to keep, fixing thread handle leak from event loop.
124+
thread_options.join_strategy = AWS_TJS_MANAGED;
123125

124126
struct aws_event_loop_options options = {
125127
.clock = clock,

0 commit comments

Comments
 (0)