This reverts commit c649d0ea32. The change results in deadlock in network_cli while it is waiting to check the return value of recv_ready() which was added in this commit to improve performance
c649d0ea32