After downloading 140 KiB of data, TCP::recv returns -3011. All further calls to the same socket does nothing. Test application: https://github.com/ARMmbed/test-mbed-tcpsocket This issue might be related to https://github.com/ARMmbed/mbed-os/issues/2553 Tested on K64F and GCC_ARM.