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

Add port conn params #127

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Add port conn params #127

wants to merge 11 commits into from

Conversation

demonolock
Copy link
Contributor

No description provided.

@demonolock demonolock self-assigned this Jun 4, 2024
@staticmethod
def is_port_open(host, port):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.settimeout(1) # Таймаут для попытки соединения
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sock.settimeout(1) # Таймаут для попытки соединения
sock.settimeout(1) # Timeout for connection attempt

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, it will be added in scope of https://github.com/postgrespro/testgres/pull/129/files I think the new testgres version will be deployed next week.

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