arpadboda commented on a change in pull request #615: MINIFICPP-963 - Zero byte
(no content) flow files cannot be received …
URL: https://github.com/apache/nifi-minifi-cpp/pull/615#discussion_r321333556
##########
File path: libminifi/src/sitetosite/SiteToSiteClient.cpp
##########
@@ -499,6 +505,12 @@ int16_t SiteToSiteClient::send(std::string transactionID,
DataPacket *packet, co
return -1;
}
packet->_size += len;
+ } else if (flowFile && !flowfile_has_content) {
+ ret = transaction->getStream().write(len); // Indicate zero length
+ if (ret != 8) {
+ logger_->log_debug("ret != 8");
Review comment:
Agreed. Just copy-pasted before, fixed all occurrences now to provide
context.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services