Alternative to echof: an echo server with consistent EOF notifications