Bugfix: the server now waits for client's request for every chunk before sending it