forked from weirdhome

Fork of HTTPClient by David Smart

Revision:
44:0e3b0849b2c7
Parent:
43:12a6ae712bcd
Child:
46:01970be2f08a
--- a/HTTPClient.cpp	Thu Jul 20 10:56:03 2017 +0000
+++ b/HTTPClient.cpp	Sat Jul 29 14:05:52 2017 +0000
@@ -554,11 +554,13 @@
     int ret;
     while (readLen < maxLen) {
         if (readLen < minLen) {
-            DBG("Trying to read at most %4d bytes [Blocking] %d,%d", minLen - readLen, minLen, readLen);
+            DBG("Trying to read at most %4d bytes [not Blocking, %d] %d,%d", minLen - readLen, 
+                m_timeout, minLen, readLen);
             m_sock.set_blocking(false, m_timeout);
             ret = m_sock.receive_all(buf + readLen, minLen - readLen);
         } else {
-            DBG("Trying to read at most %4d bytes [Not blocking] %d,%d", maxLen - readLen, maxLen, readLen);
+            DBG("Trying to read at most %4d bytes [Not blocking, %d] %d,%d", maxLen - readLen, 
+                0, maxLen, readLen);
             m_sock.set_blocking(false, 0);
             ret = m_sock.receive(buf + readLen, maxLen - readLen);
         }