Fix max queue length semaphore connection closing bug
Merge remote-tracking branch 'origin/master'