![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First step: AutoIP compiled in and working
Diff: services/http/client/HTTPClient.cpp
- Revision:
- 1:4218cacaf696
- Parent:
- 0:55a05330f8cc
--- a/services/http/client/HTTPClient.cpp Fri Jun 18 09:11:35 2010 +0000 +++ b/services/http/client/HTTPClient.cpp Fri Jun 18 15:54:21 2010 +0000 @@ -144,7 +144,7 @@ void HTTPClient::setTimeout(int ms) { - m_timeout = 1000*ms; + m_timeout = ms; //resetTimeout(); } @@ -154,7 +154,7 @@ { return; } - if(m_watchdog.read_us()>m_timeout) + if(m_watchdog.read_ms()>m_timeout) { onTimeout(); } @@ -396,6 +396,9 @@ onResult(HTTP_CONN); return; } + + if(len>0) + resetTimeout(); if(m_state == HTTP_READ_DATA_INCOMPLETE) return;