Skip to content

Commit e24fd86

Browse files
authored
fix: ignore SIGPIPE to prevent server crash on S3 idle connection timeout (#8768)
1 parent 2d64d2d commit e24fd86

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/triton_signal.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
// Copyright 2020-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
//
33
// Redistribution and use in source and binary forms, with or without
44
// modification, are permitted provided that the following conditions
@@ -137,6 +137,9 @@ RegisterSignalHandler()
137137
signal(SIGSEGV, ErrorSignalHandler);
138138
signal(SIGABRT, ErrorSignalHandler);
139139

140+
// Ignore SIGPIPE to prevent crash on AWS SDK writing to closed idle sockets
141+
signal(SIGPIPE, SIG_IGN);
142+
140143
return nullptr; // success
141144
}
142145

0 commit comments

Comments
 (0)