if (version == MessagingService.version_)
{
int size = input.readInt();
byte[] headerBytes = new byte[size];
input.readFully(headerBytes);
stream(StreamHeader.serializer().deserialize(new DataInputStream(new FastByteArrayInputStream(headerBytes)), version), input);
}
else
{
// streaming connections are per-session and have a fixed version. we can't do anything with a new-version stream connection, so drop it.
logger.error("Received untranslated stream from newer protocol version. Terminating connection!");