szaszm commented on a change in pull request #740: MINIFICPP-1144 - Fix 
HTTPCallback freeze and refactor class
URL: https://github.com/apache/nifi-minifi-cpp/pull/740#discussion_r380694800
 
 

 ##########
 File path: libminifi/include/utils/HTTPClient.h
 ##########
 @@ -185,11 +185,19 @@ class HTTPRequestResponse {
    * Receive HTTP Response.
    */
   static size_t recieve_write(char * data, size_t size, size_t nmemb, void * 
p) {
-    HTTPReadCallback *callback = static_cast<HTTPReadCallback*>(p);
-    if (callback->stop)
+    try {
+      if (p == nullptr) {
+        return 0x10000000;
 
 Review comment:
   Could you introduce a symbolic constant for this value?

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