'Can server/client recv EAGAIN while data is being read?

For a TCP connection, operating in Non-blocking mode on both client and server-side.

Assume that server has sent 10bytes successfully in one shot, Can the client receive the data in (2bytes,2bytes, EAGAIN, 8bytes) chunks? or will the client will always receive data in (2bytes,2bytes,8bytes)(without EAGAIN). Can there be an EAGAIN in between in any case?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source