This commit moves the code which calls server read callback into a separate function to avoid code repetition.