From: "selvanair (Code Review)" Date: Mon, 27 Apr 2026 20:14:31 +0000 In-Reply-To: References: Reply-To: selva.nair@...277..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <84d7cc928177fef1244a39ec724dff6ea49cd1aa-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="OUkaSaPSmGk="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Avoid recursive call of man_read List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: plaisthos , openvpn-devel --OUkaSaPSmGk= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable selvanair has posted comments on this change by selvanair. ( http://gerrit.= openvpn.net/c/openvpn/+/1639?usp=3Demail ) Change subject: Avoid recursive call of man_read ...................................................................... Patch Set 1: (1 comment) Patchset: PS1: Although FD_READ is level triggered,MSDN has this: ".. an application need not read all available data in response to an FD_RE= AD network event=E2=80=94a single recv in response to each FD_READ network = event is appropriate." This is problematic, as it requires at least one recv() to get the event to= re-trigger. So, man_read() retruning without recv() as proposed here may n= ot be fool-proof? Unfortunately recv with zero bytes is a no-op, so that's = not an option either. Back to square one? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1639?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I9433baee1f5a66d43d4e43e03128ae6a790a7937 Gerrit-Change-Number: 1639 Gerrit-PatchSet: 1 Gerrit-Owner: selvanair Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Comment-Date: Mon, 27 Apr 2026 20:14:31 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No --OUkaSaPSmGk= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

View Change

1 c= omment:

  • Patchset:

      Patch Set #1:

      Although FD_READ is level triggered= ,MSDN has this:
      ".. an application need not read all available data= in response to an FD_READ network event=E2=80=94a single recv in response = to each FD_READ network event is appropriate."

      This is problematic= , as it requires at least one recv() to get the event to re-trigger. So, ma= n_read() retruning without recv() as proposed here may not be fool-proof? U= nfortunately recv with zero bytes is a no-op, so that's not an option e= ither.

      Back to square one?

To view, visit change 1639= . To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I9433baee1f5a66d43d4e43e0312= 8ae6a790a7937
Gerrit-Change-Number: 1639
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <selva.nair@...1354...= ..>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Comment-Date: Mon, 27 Apr 2026 20:14:31= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
= --OUkaSaPSmGk=--