GoogleCloudPlatform / GoogleCloudPlatform/gsutil

socks5 does not appear to work at all

Open
#1,384 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
918
Forks
335
PR merge metrics
No merged PRs in 30d

Description

Socks5 when set via boto appears to be supported in the code. It is also listed as supported at

![image](https://user-images.githubusercontent.com/83850054/138606216-39ef5281-5946-495b-9ceb-f3f7c04fd666.png)

https://cloud.google.com/storage/docs/boto-gsutil

However when using socks5 type set in the .boto config. `gsutil` just hangs with process cpu usage at 99%.

Here is debug for an `ls` command.

![image](https://user-images.githubusercontent.com/83850054/138606571-3432b115-3499-4579-ab31-30549e4449e4.png)

Curiously rdns is set to true, despite a conditional check in `gslib/utils/boto_util.py` making it false if not http proxy. Thus for some reason perhaps it thinks the proxy is http, despite being set to socks5 in the .boto config.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the hanging `gsutil ls` with a socks5 setting in the `.boto` configuration and inspect `gslib/utils/boto_util.py`, especially the conditional that handles proxy type and rdns. Done means the configured socks5 proxy is recognized correctly and the command no longer hangs; use the supplied debug output to compare behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.