I'm experiencing network timeouts when trying to fetch libraries from https://rubygems.org and I'd like to figure out why.
It only seems to affect requests made from my home network. If I take my computer to a different network, I can fetch from rubygems without issue.
It also seems to be somewhat specific to rubygems.org -- if I make the same requests to a different gem server (https://gems.ruby-china.org), I can fetch without timing out.
I watched the requests/responses while fetching gems (running bundle --verbose), and saw several successful requests, followed by some rate-limit errors (429 Too Many Requests), then some more successes before it hangs, and eventually times out.
I ran ss --tcp --processes at the same time and saw steadily-repeating SYN-SENT statuses associated with the bundle process.
State Recv-Q Send-Q Peer Address:Port SYN-SENT 0 1 [2a04:4e42::514]:https users:(("bundle",pid=17701,fd=8)) SYN-SENT 0 1 [2a04:4e42::514]:https users:(("bundle",pid=17701,fd=8)) ... Since I'm still getting familiar with networking, I could be looking at this from the wrong angle. Any pointers would be greatly appreciated.