Add max get connection capabilities

Add max get connection capabilities using semaphore.