GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fixed issues with running out of resources and connection timing out by nalauder · Pull Request #27 · initstring/cloud_enum

Conversation

@nalauder

@nalauder nalauder commented Apr 5, 2020

Copy link
Copy Markdown
Contributor

Had issues with program quitting when encountering a Timeout exception, now handles more gracefully.

Was also running out of resources due to thread pools being created but not closed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nalauder
Fixed issues with running out of resources and connection timing out
10fc30b
@initstring

initstring commented Apr 6, 2020

Copy link
Copy Markdown
Owner

Thank you so much for contributing! This is great, I didn't know about the need to close the thread pools.

I do have a question on this. I wonder if silently passing on a DNS timeout might cause someone to be unaware that all their queries are failing.

See this recent ticket, where it seems the user had DNS resolution issues in general: #23

Do you think it might be better to send an alert in the UI during a timeout? I have no issues with timeouts. If you do a print statement in one of your runs, how many timeouts do you generally see?

Could your timeouts be related to the running out of resources? Like you had so many DNS queries pending?

This looks like a good edition either way, except I may put an alert to console on the timeouts while allowing the program to continue.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@initstring
initstring changed the base branch from master to dev April 6, 2020 20:29
@initstring
initstring merged commit 8e2381b into initstring:dev Apr 6, 2020
@initstring

initstring commented Apr 6, 2020

Copy link
Copy Markdown
Owner

I've merged the changes to a dev branch but tweaked slightly: https://github.com/initstring/cloud_enum/tree/dev

Would you be able to test and let me know your results? Curious how many timeouts you are getting.

Basically, I added an alert to the console and also adjusted the timeout threshold down to 10 seconds. A 10-second long DNS query seems like it reasonably should fail, but let me know if you think otherwise.

Thanks again! Your contribution is greatly appreciated!!!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nalauder

nalauder commented Apr 6, 2020

Copy link
Copy Markdown
Contributor Author

Thanks for the inclusion.

I like your idea better with the alert to the user. It actually makes it helpful rather than just silently failing. This would help in cases where users could be getting different results from different hosts because they can actually see the errors.

I'm not so sure about the resource limits and timeouts being related though. I feel like this could be more to do with the python garbage collector not cleaning up old pools quickly, whereas the pool.close() will clean it up as soon as its finished. Which could then be because the pool was alive for longer because of the timeouts that the garbage collector waited longer to remove it because it may get reused. Either way, I haven't seen the resource errors since the inclusion and I was running on a host with limited resources and an older python version.

In a classic testing move, I am unable to reproduce the issue! So something else may have changed on my end since I actually made fix (about a week ago).

Big fan of the tool!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@initstring

initstring commented Apr 6, 2020

Copy link
Copy Markdown
Owner

Thanks @nalauder !!

I'm keeping the pool close in, as it definitely makes sense. I'll merge to master soon.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@nalauder @initstring
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.