westonpace commented on code in PR #34134:
URL: https://github.com/apache/arrow/pull/34134#discussion_r1113598918


##########
cpp/src/arrow/filesystem/s3fs.cc:
##########
@@ -2591,6 +2596,20 @@ Status DoInitializeS3(const S3GlobalOptions& options) {
 
 #undef LOG_LEVEL_CASE
 
+#ifdef ARROW_S3_HAS_CRT
+  aws_options.ioOptions.clientBootstrap_create_fn =
+      [ev_threads = options.num_event_loop_threads]() {
+        // 
https://github.com/aws/aws-sdk-cpp/blob/1.11.15/src/aws-cpp-sdk-core/source/Aws.cpp#L65
+        Aws::Crt::Io::EventLoopGroup eventLoopGroup(ev_threads);
+        Aws::Crt::Io::DefaultHostResolver defaultHostResolver(
+            eventLoopGroup, /*maxHosts=*/8, /*maxTTL=*/30);
+        auto clientBootstrap = Aws::MakeShared<Aws::Crt::Io::ClientBootstrap>(
+            "Aws_Init_Cleanup", eventLoopGroup, defaultHostResolver);
+        clientBootstrap->EnableBlockingShutdown();
+        return clientBootstrap;

Review Comment:
   Ah, good catch.  Not intentional, thanks.  I've made this change.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to