We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd0bf21 commit ff660b4Copy full SHA for ff660b4
lib/connection.js
@@ -227,7 +227,8 @@ C.open = function(allFields, openCallback0) {
227
tunedOptions.channelMax =
228
negotiate(fields.channelMax, allFields.channelMax);
229
tunedOptions.heartbeat =
230
- negotiate(fields.heartbeat, allFields.heartbeat);
+ allFields.heartbeat === 0 ?
231
+ 0 : negotiate(fields.heartbeat, allFields.heartbeat);
232
send(defs.ConnectionTuneOk);
233
send(defs.ConnectionOpen);
234
expect(defs.ConnectionOpenOk, onOpenOk);
0 commit comments