ddfxx
Fork of WIZnetInterface_Ricky by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 20:5a1969320666
- Parent:
- 0:6f28332c466f
- Child:
- 21:584efa51ee60
diff -r d8773cd4edc5 -r 5a1969320666 Socket/TCPSocketConnection.cpp --- 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; }