mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Conditionally poll longer if we're still waiting for an auth prompt
This commit is contained in:
parent
5f0f5363b6
commit
9e734df0ec
1 changed files with 5 additions and 1 deletions
|
@ -444,7 +444,11 @@ class Connection(ConnectionBase):
|
|||
state += 1
|
||||
|
||||
while True:
|
||||
rfd, wfd, efd = select.select(rpipes, [], rpipes, 0.1)
|
||||
poll_timeout = 0.1
|
||||
if state <= states.index('awaiting_escalation'):
|
||||
poll_timeout = timeout
|
||||
|
||||
rfd, wfd, efd = select.select(rpipes, [], rpipes, poll_timeout)
|
||||
|
||||
# We pay attention to timeouts only while negotiating a prompt.
|
||||
|
||||
|
|
Loading…
Reference in a new issue