Change in openvpn[master]: multi: Warn about failing read in multi_process_file_closed()
A message that is not in the archive (sent off-list or not yet received): gerrit.1765813841000.Ie982f620a8af80564a70d993e6e84ec4e525236a@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1443?usp=email
to review the following change.
Change subject: multi: Warn about failing read in multi_process_file_closed()
......................................................................
multi: Warn about failing read in multi_process_file_closed()
Handle failure explicitly instead of the implicit
handling by "while (buffer_i < r)". That error
checking was previously broken but was fixed by
commit 5e5ead5ba019fc2a8266f77a7d840b30fd545198.
Github: openvpn-private-issues#101
---
M src/openvpn/multi.c
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/43/1443/1
src/openvpn/multi.c +5 -0
@@ -2806,6 +2806,11 @@char buffer[INOTIFY_EVENT_BUFFER_SIZE ];ssize_t buffer_i =0 ;ssize_t r =read (m->top.c2.inotify_fd, buffer,INOTIFY_EVENT_BUFFER_SIZE ); +if (r <0 ) + { +msg (M_WARN |M_ERRNO ,"MULTI: multi_process_file_closed error" ); +return ; + }while (buffer_i < r) {
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1443?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie982f620a8af80564a70d993e6e84ec4e525236a
Gerrit-Change-Number: 1443
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1443?usp=email )
Change subject: multi: Warn about failing read in multi_process_file_closed()
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1443?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie982f620a8af80564a70d993e6e84ec4e525236a
Gerrit-Change-Number: 1443
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 15 Dec 2025 15:56:09 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH 1/1 multi: Warn about failing read in multi_process_file_closed()
In reply to a message not in the archiveFrom: Frank Lichtenheld <[email protected]...>
Handle failure explicitly instead of the implicit
handling by "while (buffer_i < r)". That error
checking was previously broken but was fixed by
commit 5e5ead5ba019fc2a8266f77a7d840b30fd545198.
Github: openvpn-private-issues#101
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1443
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1443
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpn/multi.c +5 -0
@@ -2806,6 +2806,11 @@char buffer[INOTIFY_EVENT_BUFFER_SIZE ];ssize_t buffer_i =0 ;ssize_t r =read (m->top.c2.inotify_fd, buffer,INOTIFY_EVENT_BUFFER_SIZE ); +if (r <0 ) + { +msg (M_WARN |M_ERRNO ,"MULTI: multi_process_file_closed error" ); +return ; + }while (buffer_i < r) {
[Openvpn-devel] [PATCH applied] Re: multi: Warn about failing read in multi_process_file_closed()
Not sure how this can fail, but if it does, we should not silently ignore it (... as this would likely cause other issues later on, like not cleaning up ACF files, etc.) -> this makes sense, in it goes.
Your patch has been applied to the master branch.
commit 18d1b1fe008a4bbfd5a56ca7bb59f6f8cb58114a
Author: Frank Lichtenheld Date: Mon Dec 15 16:56:47 2025 +0100
multi: Warn about failing read in multi_process_file_closed()
Signed-off-by: Frank Lichtenheld <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1443
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35095.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1443?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: multi: Warn about failing read in multi_process_file_closed()
......................................................................
multi: Warn about failing read in multi_process_file_closed()
Handle failure explicitly instead of the implicit
handling by "while (buffer_i < r)". That error
checking was previously broken but was fixed by
commit 5e5ead5ba019fc2a8266f77a7d840b30fd545198.
Github: openvpn-private-issues#101
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1443
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35095.html
---
M src/openvpn/multi.c
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/43/1443/2
src/openvpn/multi.c +5 -0
@@ -2806,6 +2806,11 @@char buffer[INOTIFY_EVENT_BUFFER_SIZE ];ssize_t buffer_i =0 ;ssize_t r =read (m->top.c2.inotify_fd, buffer,INOTIFY_EVENT_BUFFER_SIZE ); +if (r <0 ) + { +msg (M_WARN |M_ERRNO ,"MULTI: multi_process_file_closed error" ); +return ; + }while (buffer_i < r) {
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1443?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie982f620a8af80564a70d993e6e84ec4e525236a
Gerrit-Change-Number: 1443
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1443?usp=email )
Change subject: multi: Warn about failing read in multi_process_file_closed()
......................................................................
multi: Warn about failing read in multi_process_file_closed()
Handle failure explicitly instead of the implicit
handling by "while (buffer_i < r)". That error
checking was previously broken but was fixed by
commit 5e5ead5ba019fc2a8266f77a7d840b30fd545198.
Github: openvpn-private-issues#101
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1443
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35095.html
---
M src/openvpn/multi.c
1 file changed, 5 insertions(+), 0 deletions(-)
src/openvpn/multi.c +5 -0
@@ -2806,6 +2806,11 @@char buffer[INOTIFY_EVENT_BUFFER_SIZE ];ssize_t buffer_i =0 ;ssize_t r =read (m->top.c2.inotify_fd, buffer,INOTIFY_EVENT_BUFFER_SIZE ); +if (r <0 ) + { +msg (M_WARN |M_ERRNO ,"MULTI: multi_process_file_closed error" ); +return ; + }while (buffer_i < r) {
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1443?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie982f620a8af80564a70d993e6e84ec4e525236a
Gerrit-Change-Number: 1443
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>