A simple library to support serving https.

Dependents:   oldheating gps motorhome heating

Files at this revision

API Documentation at this revision

Comitter:
andrewboyson
Date:
Wed Apr 01 12:48:52 2020 +0000
Parent:
23:e93d5529b7a6
Commit message:
Added check so that if the client closes the TCP connection before the TLS connection is established then respond that we have finished and the TCP connection is to be closed.

Changed in this revision

tls/tls-response.c Show annotated file Show diff for this revision Revisions of this file
diff -r e93d5529b7a6 -r cb43290fc439 tls/tls-response.c
--- a/tls/tls-response.c	Mon Oct 28 08:18:57 2019 +0000
+++ b/tls/tls-response.c	Wed Apr 01 12:48:52 2020 +0000
@@ -260,13 +260,13 @@
     if (!pConnection)
     {
         *pWindowSize = 0;
-        return false;     //Ignore empty connections in poll
+        return clientFinished;     //Ignore empty connections in poll
     }
     
     if (!pConnection->sessionId)
     {
         *pWindowSize = 0;
-        return false;     //Ignore empty sessions in poll
+        return clientFinished;     //Ignore empty sessions in poll
     }
     
     struct TlsSession* pSession = TlsSessionOrNull(pConnection->sessionId);