Handle EndOfStream exception thrown by AnyIO
Handle EndOfStream exception thrown by AnyIO

The warning box of AnyIO manual
(https://anyio.readthedocs.io/en/stable/networking.html) states:

> Unlike the standard BSD sockets interface and most other networking
libraries, AnyIO (from 2.0 onwards) signals the end of any stream by
raising the EndOfStream exception instead of returning an empty bytes
object.

theelous3/asks