Skip to content

Conversation

@archit15singh
Copy link

Refactor TCP host/port availability script

  • Enhanced variable naming for better readability
  • Simplified and improved argument parsing logic
  • Improved error handling, especially around timeout logic
  • Refactored functions for simplicity and maintainability
  • Consistently used nc -z for port checking
  • Enhanced signal handling for better script termination
  • Updated usage instructions for clarity

These changes make the script more readable, maintainable, and robust.

Refactor TCP host/port availability script

- Enhanced variable naming for better readability
- Simplified and improved argument parsing logic
- Improved error handling, especially around timeout logic
- Refactored functions for simplicity and maintainability
- Consistently used `nc -z` for port checking
- Enhanced signal handling for better script termination
- Updated usage instructions for clarity

These changes make the script more readable, maintainable, and robust.
@syntaxsdev
Copy link

@archit15singh looks good.

@syntaxsdev
Copy link

@vishnubob ?

@archit15singh
Copy link
Author

@vishnubob LGTM?

@archit15singh
Copy link
Author

can we merge this please?

@atkrad
Copy link

atkrad commented Mar 16, 2025

@archit15singh The project has been abandoned — the last commit was 5 years ago. I recommend Wait4X instead.

@archit15singh
Copy link
Author

Oh alright. Thank you!

@archit15singh
Copy link
Author

Starred it ⭐

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

Successfully merging this pull request may close these issues.

3 participants