When polling, poll and process all the received messages
When polling, poll and process all the received messages