# Processing sleeps as long as the SSH timeout is

**URL:** <https://forum.ansible.com/t/processing-sleeps-as-long-as-the-ssh-timeout-is/19344>\
**Category:** Ansible Project\
**Created:** [September 23, 2015, 4:00pm UTC](https://forum.ansible.com/t/processing-sleeps-as-long-as-the-ssh-timeout-is/19344 "2015-09-23T16:00:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tma0286](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@tma0286](https://forum.ansible.com/u/tma0286)\
**Post date:** [September 23, 2015, 4:00pm UTC](https://forum.ansible.com/t/processing-sleeps-as-long-as-the-ssh-timeout-is/19344/1 "2015-09-23T16:00:02Z")

</div>

I am not sure if this is a bug or an incompatibility.

Part1:

`

user@host:/sw\> time ansible -vvvv targetServer01 -m ping  
Using /sw/ansible/ansible.cfg as config file  
Loaded callback minimal of type stdout, v2.0  
 ESTABLISH SSH CONNECTION FOR USER: user  
 SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=30 -o ControlPath=/tmp/ansible-ssh-%h-%p-%r -tt targetServer01 (umask 22 && mkdir -p “$HOME/.ansible/tmp/ansible-tmp-1443023667.7-245295646620754” && echo “$HOME/.ansible/tmp/ansible-tmp-1443023667.7-245295646620754”)

`

Part2:

`

PUT /tmp/tmpjOMTij TO /home/user/.ansible/tmp/ansible-tmp-1443023667.7-245295646620754/ping  
 SSH: EXEC scp -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=30 -o ControlPath=/tmp/ansible-ssh-%h-%p-%r /tmp/tmpjOMTij [targetServer01]:/home/user/.ansible/tmp/ansible-tmp-1443023667.7-245295646620754/ping  
 ESTABLISH SSH CONNECTION FOR USER: user  
 SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=30 -o ControlPath=/tmp/ansible-ssh-%h-%p-%r -tt targetServer01 LANG=C LC\_MESSAGES=C LC\_CTYPE=C /usr/bin/python /home/user/.ansible/tmp/ansible-tmp-1443023667.7-245295646620754/ping; rm -rf “/home/user/.ansible/tmp/ansible-tmp-1443023667.7-245295646620754/” \> /dev/null 2\>&1  
targetServer01 | SUCCESS =\> {  
“changed”: false,  
“ping”: “pong”  
}

real 0m30.808s  
user 0m0.508s  
sys 0m0.172s

`

Between Part1 and Part2 the processing stucks for the length of my SSH timeout.

I am using a git checkout from yesterday.

Any ideas?

---

<div class="post-metadata">

**Author:** ![tma0286](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@tma0286](https://forum.ansible.com/u/tma0286)\
**Post date:** [September 24, 2015, 6:47am UTC](https://forum.ansible.com/t/processing-sleeps-as-long-as-the-ssh-timeout-is/19344/2 "2015-09-24T06:47:39Z")

</div>

Fixed with this commit: [https://github.com/ansible/ansible/commit/2898e000a0b993d5c4445c04c713f6f857ea88e1](https://github.com/ansible/ansible/commit/2898e000a0b993d5c4445c04c713f6f857ea88e1)
