Hi Lucas, Thanks for checking this change out!
On Wed, 25 Nov 2026 at 09:46, Lucas Vargas Dias <[email protected]> wrote: > > 1. Please mention in the commit message that a backlogged session is > now subject to the inactivity probe like any other session. Before, > the receive gate exempted it by accident. A busy client (e.g. in a > long recompute) is not treated any differently than before: with no > backlog it was already dropped after two probe intervals. > The flag makes explicit to jsonrpc a behaviour that, AFAIK, is not documented anywhere: ovsdb-server does not call jsonrpc_session_recv() on a session with a backlog. Without a receive attempt, the probe and timeout on such a session were held off: it was neither probed nor disconnected, and the poll loop spun waiting for that attempt. With the flag, they run on schedule and the poll loop no longer spins. So what you describe holds only for a backlogged session that is not noticed reading its backlog, i.e. one whose backlog does not move for a probe interval: it is now probed and then disconnected. For every other backlogged session nothing changes: a probe queued behind a backlog cannot be answered until the backlog is read, but the backlog moving already counts as activity, so they are kept as before. The message says both: before, "The session is neither probed nor disconnected"; after, "A backlog that moves still counts as activity, so a peer that keeps taking data is kept; one whose queue does not move for a probe interval is probed and, with the probe queued behind the backlog, disconnected one interval later." 2. In the test, the ': ${idle_before:=0} ...' and > ': ${stalled_before:=0} ...' defaults let the rate check pass > silently if POLL_CREATE_NODE_TOTAL returns nothing. I'd drop them > and check that the values are set instead. > Agreed. coverage/show omits a counter whose total is still zero, and ovsdb-server only updates its totals about once a second, the first time a second after start-up, so whether the first read finds the counter depends on timing. Waiting for it to show up before the first read, with OVS_WAIT_UNTIL([test -n "`POLL_CREATE_NODE_TOTAL`"]), is the check that it is set, and the defaults can go. I'll fold it into the next revision. Cheers, -- <https://www.magazineluiza.com.br/> *Aeliton G. Silva* Desenvolvedor Especialista - MGC SDN URP -- _‘Esta mensagem é direcionada apenas para os endereços constantes no cabeçalho inicial. Se você não está listado nos endereços constantes no cabeçalho, pedimos-lhe que desconsidere completamente o conteúdo dessa mensagem e cuja cópia, encaminhamento e/ou execução das ações citadas estão imediatamente anuladas e proibidas’._ * **‘Apesar do Magazine Luiza tomar todas as precauções razoáveis para assegurar que nenhum vírus esteja presente nesse e-mail, a empresa não poderá aceitar a responsabilidade por quaisquer perdas ou danos causados por esse e-mail ou por seus anexos’.* _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
