You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/06/15 16:25:57 UTC
[GitHub] [arrow] marsupialtail commented on pull request #13385: ARROW-16521 [C++][R] Configure curl timeout policy for S3
marsupialtail commented on PR #13385:
URL: https://github.com/apache/arrow/pull/13385#issuecomment-1156681638
How to test this: you can use MinIO and firewall tools on Mac to artificially limit your network connection.
1. Setup a MinIO server (default port is localhost:9000), make a bucket and put a simple text file in it.
2. Now change your network connection to 9000 to add a 10s delay each way by doing the following:
```
sudo dnctl pipe 1 config plr 0.3 bw 100Kbit/s delay 10000
echo "dummynet in proto tcp from any to localhost port 9000 pipe 1
dummynet out proto tcp from any to localhost port 9000 pipe 1" | sudo pfctl -f -
sudo pfctl -e
```
3. telnet 127.0.0.1 9000 should now establish connection after 20s.
4. Now if you don't specify timeout options when making a S3FileSystem in Python, it will timeout.
5. However if you specify the following options: s3 = fs.S3FileSystem(access_key="minioadmin",secret_key="minioadmin",endpoint_override='127.0.0.1:9000',scheme="http",connect_timeout_ms=100000, request_timeout_ms=100000) it will work!
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org