Server now send requests when received, instead of sending it in a loop