Prevent heartbeats until connection is fully initialized

Description

During connection initialization, and in particular, when authentication is enabled, heartbeats should not be sent even if the channel is idle, as this could break a SASL handshake.

It has been observed that, when a heartbeat message is interleaved with SASL messages, the server answers with the following message:

Environment

None

Pull Requests

None
Fixed

Assignee

Unassigned

Reporter

Alexandre Dutra

Labels

None

PM Priority

None

Reproduced in

None

Affects versions

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Minor
Configure