Set chunkSize for loading data from network to a value depending on the message-length