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.
Revision 2:d45fed6919ef, committed 2016-11-16
- 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 | 
--- 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();
     }
 }