In some cases the client tried to read from uninitialized read buffer. Fixed;
Now in tests empty TCP port is taken using module Net::EmptyPort.