socket chardev loses data when remote end closes the connection