aboutsummaryrefslogtreecommitdiff
path: root/firmwares/wifishield/wifiHD
diff options
context:
space:
mode:
authormlf <info@metodo2.it>2012-10-23 22:27:53 +0200
committerCristian Maglie <c.maglie@bug.st>2012-11-28 13:16:58 +0100
commita400fd3cd5915f34b6e49e2477acfa43d64733a4 (patch)
tree222eb94a41eb76a7150a24c004383fc39d3fe38d /firmwares/wifishield/wifiHD
parent2659e41c00dba4e34aaa38feb1dd3437ac462f5f (diff)
Issue #9: Connection dies after a few seconds
Issue 1024: TCP connections die after few seconds of inactivity
Diffstat (limited to 'firmwares/wifishield/wifiHD')
-rw-r--r--firmwares/wifishield/wifiHD/Release/wifiHD.elfbin398956 -> 397640 bytes
-rw-r--r--firmwares/wifishield/wifiHD/src/ard_tcp.c3
2 files changed, 2 insertions, 1 deletions
diff --git a/firmwares/wifishield/wifiHD/Release/wifiHD.elf b/firmwares/wifishield/wifiHD/Release/wifiHD.elf
index ca98ee6..e732373 100644
--- a/firmwares/wifishield/wifiHD/Release/wifiHD.elf
+++ b/firmwares/wifishield/wifiHD/Release/wifiHD.elf
Binary files differ
diff --git a/firmwares/wifishield/wifiHD/src/ard_tcp.c b/firmwares/wifishield/wifiHD/src/ard_tcp.c
index dad1c3e..b70549a 100644
--- a/firmwares/wifishield/wifiHD/src/ard_tcp.c
+++ b/firmwares/wifishield/wifiHD/src/ard_tcp.c
@@ -334,7 +334,8 @@ void ack_recved(void* pcb, int len) {
static err_t atcp_poll(void *arg, struct tcp_pcb *pcb) {
struct ttcp* _ttcp = arg;
- ++tcp_poll_retries;
+ if ((_ttcp) && (_ttcp->left>0))
+ ++tcp_poll_retries;
if (tcp_poll_retries > 4) {
WARN("ARD TCP [%p] arg=%p retries=%d\n",