Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: tcp/tcpsend.c
- Revision:
- 87:40d46a979cdb
- Parent:
- 83:08c983006a6e
- Child:
- 88:1ba13e6062a3
--- a/tcp/tcpsend.c Sun Nov 18 12:13:15 2018 +0000 +++ b/tcp/tcpsend.c Sun Nov 18 15:34:56 2018 +0000 @@ -15,7 +15,6 @@ #define TIMEOUT_RETRANSMISSION 2 #define MAX_RETRANSMISSIONS 10 -#define TIMEOUT_KEEP_ALIVE 60 #define TIMEOUT_BROKEN_LINK 600 static int addApplicationData(void* pPacket, uint16_t port, uint32_t start, int mss, int todo) @@ -207,14 +206,7 @@ //Return the local IP scope if (pLocIpScope) *pLocIpScope = pTcb->locIpScope; - - //Close old ones - if (TcbElapsed >= pTcb->timeLastRcvd + TIMEOUT_KEEP_ALIVE) - { - if (TcpTrace) LogTimeF("TCP - Closing TCB port %hu - after keep alive\r\n", pTcb->remPort); - return TcpSendClose(pSize, pPacket, pTcb); - } - + //Reap old ones if (TcbElapsed >= pTcb->timeLastRcvd + TIMEOUT_BROKEN_LINK) {