Make the example server multi-threaded.
Fixed missing ACKs after local EOF.

If the session has initiated an EOF, all subsequent received
blocks should be marked as distributed since the reader is not
reading anymore and otherwise they will fill the receive queue
and cause the other side to not get ACKs.
Use per-connection buffers.