exeption of receive(TCPSocketconnection)
Dependents: FTP_SDCard_File_Client_WIZwiki-W7500 FTPClient_example Freedman DigitalCamera_OV5642_WIZwiki-W7500 ... more
Fork of WIZnetInterface by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 20:5a1969320666
- Parent:
- 0:6f28332c466f
--- a/Socket/TCPSocketConnection.cpp Wed Jul 01 04:02:50 2015 +0000 +++ b/Socket/TCPSocketConnection.cpp Tue Jul 21 15:39:29 2015 +0000 @@ -108,9 +108,11 @@ return -1; int size = eth->wait_readable(_sock_fd, _blocking ? -1 : _timeout); + //int size = eth->wait_readable(_sock_fd, _blocking ? _timeout : -1 ); if (size < 0) { return -1; } + if (size > length) { size = length; }