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: EthernetInterface EthernetInterface_RSF EthernetInterface EthernetInterface ... more
Diff: TCPSocketServer.cpp
- Revision:
- 15:41e3af01f58e
- Parent:
- 11:3d83c348fb8b
- Child:
- 16:2d471deff212
diff -r c159ce890a45 -r 41e3af01f58e TCPSocketServer.cpp
--- a/TCPSocketServer.cpp Sat Aug 04 08:28:29 2012 +0000
+++ b/TCPSocketServer.cpp Mon Aug 13 09:38:00 2012 +0000
@@ -66,6 +66,7 @@
if (wait_readable(timeout) != 0)
return -1;
}
+ connection.reset_address();
socklen_t newSockRemoteHostLen = sizeof(connection._remoteHost);
int fd = lwip_accept(_sock_fd, (struct sockaddr*) &connection._remoteHost, &newSockRemoteHostLen);
if (fd < 0)
