Fork of original ST example for testing

Files at this revision

API Documentation at this revision

Comitter:
JojoS
Date:
Wed Nov 16 12:29:53 2016 +0000
Parent:
1:ec61ea9f67de
Commit message:
client socket is not closed after sending HTTP response

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r ec61ea9f67de -r d45fed6919ef main.cpp
--- a/main.cpp	Mon Nov 14 15:34:13 2016 +0000
+++ b/main.cpp	Wed Nov 16 12:29:53 2016 +0000
@@ -50,5 +50,6 @@
         srv.accept(&clt_sock, &clt_addr);
         printf("accept %s:%d\n", clt_addr.get_ip_address(), clt_addr.get_port());
         clt_sock.send(HTTP_RESPONSE, strlen(HTTP_RESPONSE));
+        clt_sock.close();
     }
 }