Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Composer hangs when cloning SSH repository with enabled ControlMaster #4180
This is a really strange bug.
I'm using the ControlMaster setting of SSH to speed up connections to our Git server:
I can manually access the Server with SSH and clone repositories without a problem.
But when I use composer and the master file does not exist, composer just stops working on this command:
When I look at the process tree, I see this:
When I open a connection to the SSH server before running composer and the master file already exists the composer command runs without problems.
On my server
Yay for homebrew
By the sounds of things it was never fixed in SSH they just added the
@alcohol I'm using 6.6 and can reproduce the problem, the difference is I use a time out of 10 minutes rather than your much longer 2 hours. I think I'll bump mine up for GitHub.
Console output on my machine: https://gist.github.com/cs278/7e60c231159bc2249cd8
Steps to reproduce are basically:
cd "$(mktemp -d)" ssh -O exit email@example.com composer require --prefer-source psr/log '*'
added a commit
Jun 26, 2015
Eh your steps to reproduce doesn't really work for me...
Edit: never mind, had to add a github.com entry to my .ssh config;
@alcohol you should also force composer to use the ssh url when cloning the repo. If it clones over https, it will of course not be impacted. and by default, SSH is the last protocol: https://getcomposer.org/doc/06-config.md#github-protocols and