private fork

Fork of GSwifiInterface by gs fan

Revision:
11:71d67fea5ace
Parent:
8:64184a968e3b
--- a/Socket/TCPSocketConnection.cpp	Thu Oct 31 08:34:45 2013 +0000
+++ b/Socket/TCPSocketConnection.cpp	Fri Nov 15 04:20:14 2013 +0000
@@ -83,12 +83,14 @@
         tmr.start();
         while (time < _timeout + 20) {
             if (_wifi->readable(_cid)) {
+                DBG("receive readable");
                 break;
             }
             time = tmr.read_ms();
         }
         if (time >= _timeout + 20) {
-            return -1;
+            DBG("receive timeout");
+            return 0;
         }
     }