Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got blocked out of server because queries happened too quickly #47

Closed
dmusican opened this issue Sep 14, 2021 · 2 comments
Closed

Got blocked out of server because queries happened too quickly #47

dmusican opened this issue Sep 14, 2021 · 2 comments

Comments

@dmusican
Copy link

This is a fabulous tool, thanks for putting it together.

I have a lot of my git remotes on an ssh server at my workplace. When using the tool on a directory with about 30 repos, it made too many ssh connections too quickly, which triggered the security software on the server, and I got blocked from the server for about 10 minutes. That was fun to diagnose. :)

Is there any way to throttle the tool so that it hits the remote server more slowly?

@fboender
Copy link
Owner

You guys come up against the weirdest real world issues ;-)

I'm assuming this is with the -f option?

I've just pushed a change to the master branch that implements a --throttle option. It'll wait for SEC seconds between git fetch invocations (i.e. you've specified the -f flag).

Example usage:

 $ mgitstatus -f --throttle 2 -d 1
./sec-tools: ok 
./multi-git-status: ok 
./mdpreview: ok 
./ansible-cmdb: Needs push (master) Uncommitted changes Untracked files

@dmusican
Copy link
Author

Awesome, thanks so much for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants