the ostream will be accessed via the mock d'tor
make the read/write timeout configurable