bakaid 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_r319962341
 
 

 ##########
 File path: extensions/http-curl/sitetosite/HTTPProtocol.cpp
 ##########
 @@ -132,10 +132,10 @@ int HttpSiteToSiteClient::readResponse(const 
std::shared_ptr<Transaction> &trans
           logger_->log_debug("confirm read for %s, but not finished ", 
transaction->getUUIDStr());
           if (stream->waitForDataAvailable()) {
             code = CONTINUE_TRANSACTION;
+            return 1;
           }
         }
 
-        closeTransaction(transaction->getUUIDStr());
 
 Review comment:
   What error did this cause? It really seems strange to close the transaction 
if there is still data to read, but I am not sure what the exact consequences 
were.

----------------------------------------------------------------
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

Reply via email to