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
@demonolock demonolock force-pushed the add-port-conn-params branch from 4f5e23c to 2afcc92 Compare June 4, 2024 19:12
@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.

@demonolock demonolock force-pushed the add-port-conn-params branch from 2afcc92 to 37323ab Compare June 6, 2024 06:01
@demonolock demonolock force-pushed the add-port-conn-params branch from 37323ab to 1eb9a92 Compare June 6, 2024 06:18
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