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.
Fork of PicoTCP by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 47:ed8f44fa8db9
- Parent:
- 44:ffd9a11d4f95
diff -r c35c84e301e0 -r ed8f44fa8db9 Socket/TCPSocketConnection.cpp
--- a/Socket/TCPSocketConnection.cpp Thu Jul 25 08:43:55 2013 +0000
+++ b/Socket/TCPSocketConnection.cpp Thu Jul 25 09:36:23 2013 +0000
@@ -79,7 +79,7 @@
TimeInterval timeout(!_blocking ? _timeout : osWaitForever);
if (wait_writable(timeout) != 0)
{
- return -1;
+ return 0; /* Timeout */
}
ret = picotcp_write(_ep, data, length);
@@ -112,7 +112,7 @@
TimeInterval timeout(!_blocking ? _timeout : osWaitForever);
if (wait_readable(timeout) != 0)
{
- return -1;
+ return 0; /* Timeout */
}
ret = picotcp_read(_ep, data, length);
