-
Notifications
You must be signed in to change notification settings - Fork 35
Add port conn params #127
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
base: master
Are you sure you want to change the base?
Add port conn params #127
Conversation
4f5e23c
to
2afcc92
Compare
@staticmethod | ||
def is_port_open(host, port): | ||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: | ||
sock.settimeout(1) # Таймаут для попытки соединения |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sock.settimeout(1) # Таймаут для попытки соединения | |
sock.settimeout(1) # Timeout for connection attempt |
There was a problem hiding this comment.
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.
2afcc92
to
37323ab
Compare
37323ab
to
1eb9a92
Compare
No description provided.