<div dir="ltr">In Pika, currently and pre-dating my involvement, when tuning the connection, it uses the <i><b>minimum</b></i> value above 0 that either the server or client provides for the heartbeat interval:<div><div><br>

</div><div><a href="https://github.com/pika/pika/blob/v0.5/pika/connection.py#L359">https://github.com/pika/pika/blob/v0.5/pika/connection.py#L359</a><br></div><div><a href="https://github.com/pika/pika/blob/v0.5/pika/connection.py#L411">https://github.com/pika/pika/blob/v0.5/pika/connection.py#L411</a><br>

</div><div><br></div><div style>Since introducing a heartbeat interval sent by the server of 600, this has set a <b><i>maximum</i></b> heartbeat interval of 600 regardless of what the client sets upon creation.</div><div style>

<br></div><div style>In reading the 0.9.1 spec, I did not see anything dictating any behavior of this sort for heartbeat interval negotiation.</div><div><br></div><div style>I&#39;m inclined to allow the client to always overwrite the server, but since this behavior both pre-dates my involvement and is clearly intentional, I wanted to get some feedback before making the change.</div>

<div style><br></div><div style>I currently have an open ticket tied to this that I would like to resolve before releasing 0.9.10: <a href="https://github.com/pika/pika/issues/303">https://github.com/pika/pika/issues/303</a></div>

<div style><br></div><div style>So, any thoughts?</div><div style><br>Gavin</div><div style><br></div>
</div></div>