Under Linux, we can query the kernel send/receive buffer usage

If > 0, then there's still data to be read/written to.