mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-21 22:54:45 +00:00
Improved documentation.
This commit is contained in:
parent
7929a48d78
commit
d3b44be2c4
1 changed files with 3 additions and 2 deletions
|
|
@ -28,10 +28,11 @@ class PooledConnection (object):
|
|||
while True:
|
||||
connection = get_connection(scheme, host, port, create_connection)
|
||||
if hasattr(connection, 'acquire'):
|
||||
# It's a connection lock object.
|
||||
# This little trick avoids polling: wait for another
|
||||
# connection to be released.
|
||||
# connection to be released by acquiring the lock.
|
||||
connection.acquire()
|
||||
# The lock is immediately released since the above call to
|
||||
# The lock is immediately released since the calling
|
||||
# connections.get() acquires it again.
|
||||
connection.release()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue