The blocking `read()` and `write()` methods shouldn't be used together. If synchronized input and output are needed, the callback API should be used. The blocking methods may work in some cases, but they don't work in other cases, see for example #25.