A simple library to support serving https.
Dependents: oldheating gps motorhome heating
Diff: tls/tls-response.c
- Revision:
- 23:e93d5529b7a6
- Parent:
- 21:a6d6e26dd742
- Child:
- 24:cb43290fc439
--- a/tls/tls-response.c Wed Oct 23 08:44:50 2019 +0000 +++ b/tls/tls-response.c Mon Oct 28 08:18:57 2019 +0000 @@ -260,21 +260,20 @@ if (!pConnection) { *pWindowSize = 0; - return false; + return false; //Ignore empty connections in poll } if (!pConnection->sessionId) { *pWindowSize = 0; - return false; + return false; //Ignore empty sessions in poll } struct TlsSession* pSession = TlsSessionOrNull(pConnection->sessionId); if (!pSession) { - LogTimeF("TlsPoll - invalid session %u\r\n", pConnection->sessionId); - *pWindowSize = 0; - return false; + pConnection->toDo = DO_SEND_ALERT_INTERNAL_ERROR; //Abort invalid sessions + LogTimeF("TlsPoll - invalid session %u - sending internal error\r\n", pConnection->sessionId); } switch (pConnection->toDo)