Merging upstream version 1.1.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
50f8dbf7e8
commit
2044ea6182
196 changed files with 10121 additions and 3780 deletions
|
@ -37,12 +37,17 @@ async def port_check_url(url: URL, timeout: int = 5) -> bool:
|
|||
"""
|
||||
Open the port designated by the URL given the timeout in seconds.
|
||||
|
||||
If the port is available then return True; False otherwise.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
url: The URL that provides the target system
|
||||
timeout: Time to await for the port to open in seconds
|
||||
url
|
||||
The URL that provides the target system.
|
||||
timeout
|
||||
Time to await for the port to open in seconds.
|
||||
|
||||
Returns
|
||||
-------
|
||||
bool
|
||||
If the port is available then return True; False otherwise.
|
||||
"""
|
||||
port = url.port or socket.getservbyname(url.scheme)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue