Factorized common operations between PULL and PUSH servers.