def _send_packet(self, session, data):
        with self._lock:
            if session._high_water_for_send < session._seq_num_for_send:
                l = self._smp_header.size + len(data)
                seq_num = self._add_one_wrap(session._seq_num_for_send)
                hdr = self._smp_header.pack(
                    self._smid,
                    self._DATA,
                    session._session_id,
                    l,
                    seq_num,
                    session._high_water_for_recv,
                    )
                session._last_high_water_for_recv = session._high_water_for_recv
                self._transport.send(hdr + data, True)
                session._seq_num_for_send = self._add_one_wrap(session._seq_num_for_send)
            else:
                session._send_queue.append(data)
                self._read_smp_message()
dataset/ETHPy150Open denisenkom/pytds/pytds/smp.py/SmpManager._send_packet/swapped operands of `<`