conn: fix bitshift bug in Heartbeat.