it is an error if you can't read or write when sending the heartbeat