From: "cron2 (Code Review)" Date: Thu, 11 Dec 2025 11:34:17 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., gianmarco@...2726..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <4cc56a868aa4ef4c7446e31ebb377b712b960820-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Tgi9//H1Ha4="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Deprecate --fast-io option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: its_Giaan , plaisthos , flichtenheld Cc: openvpn-devel --Tgi9//H1Ha4= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#7) to the change originally created by= its_Giaan. ( http://gerrit.openvpn.net/c/openvpn/+/1425?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: Deprecate --fast-io option ...................................................................... Deprecate --fast-io option Recent changes to the event loop revealed that the --fast-io option is now partially broken and may cause "unroutable control packet" issues. As agreed during the last hackathon, this patch turns --fast-io into a no-op and emits a warning when it is used. Additionally, the MPP_CONDITIONAL_PRE_SELECT flag has been removed as it was part of the same code path and no longer needed. Change-Id: I2c0a0b55ad56e704d4bd19f1fbc1c30c83fae14c Signed-off-by: Gianmarco De Gregori Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1425 Message-Id: <20251211105956.22789-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35= 024.html Signed-off-by: Gert Doering --- M doc/man-sections/generic-options.rst M doc/man-sections/unsupported-options.rst M src/openvpn/forward.c M src/openvpn/forward.h M src/openvpn/init.c M src/openvpn/mudp.c M src/openvpn/multi.c M src/openvpn/multi.h M src/openvpn/openvpn.h M src/openvpn/options.c M src/openvpn/options.h 11 files changed, 18 insertions(+), 126 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/25/1425/7 diff --git a/doc/man-sections/generic-options.rst b/doc/man-sections/generi= c-options.rst index 882cf28..a9232ce 100644 --- a/doc/man-sections/generic-options.rst +++ b/doc/man-sections/generic-options.rst @@ -211,18 +211,6 @@ ``--show-engines`` standalone option to list the crypto engines which are supported by OpenSSL. ---fast-io - Optimize TUN/TAP/UDP I/O writes by avoiding a call to - poll/epoll/select prior to the write operation. The purpose of such a - call would normally be to block until the device or socket is ready to - accept the write. Such blocking is unnecessary on some platforms which - don't support write blocking on UDP sockets or TUN/TAP devices. In such - cases, one can optimize the event loop by avoiding the poll/epoll/select - call, improving CPU efficiency by 5% to 10%. - - This option can only be used on non-Windows systems, when ``--proto - udp`` is specified, and when ``--shaper`` is *NOT* specified. - --group group Similar to the ``--user`` option, this option changes the group ID of the OpenVPN process to ``group`` after initialization. diff --git a/doc/man-sections/unsupported-options.rst b/doc/man-sections/un= supported-options.rst index b646991..f1332f3 100644 --- a/doc/man-sections/unsupported-options.rst +++ b/doc/man-sections/unsupported-options.rst @@ -9,6 +9,10 @@ Removed in OpenVPN 2.5. This should be replaced with ``--verify-client-cert none``. +--fast-io + Ignored since OpenVPN 2.7. This option became broken due to changes + to the event loop. + --http-proxy-retry Removed in OpenVPN 2.4. All retries are controlled by ``--max-connect-r= etry``. diff --git a/src/openvpn/forward.c b/src/openvpn/forward.c index 913fb92..492e667 100644 --- a/src/openvpn/forward.c +++ b/src/openvpn/forward.c @@ -2154,13 +2154,12 @@ } /* - * Wait for I/O events. Used for both TCP & UDP sockets - * in point-to-point mode and for UDP sockets in + * Wait for I/O events. Used for UDP sockets in * point-to-multipoint mode. */ void -get_io_flags_dowork_udp(struct context *c, struct multi_io *multi_io, cons= t unsigned int flags) +get_io_flags_udp(struct context *c, struct multi_io *multi_io, const unsig= ned int flags) { unsigned int out_socket; @@ -2168,33 +2167,12 @@ multi_io->udp_flags =3D (out_socket << SOCKET_SHIFT); } +/* + * This is the core I/O wait function, used for all I/O waits except + * for the top-level server sockets. + */ void -get_io_flags_udp(struct context *c, struct multi_io *multi_io, const unsig= ned int flags) -{ - multi_io->udp_flags =3D ES_ERROR; - if (c->c2.fast_io && (flags & (IOW_TO_TUN | IOW_TO_LINK | IOW_MBUF))) - { - /* fast path -- only for TUN/TAP/UDP writes */ - unsigned int ret =3D 0; - if (flags & IOW_TO_TUN) - { - ret |=3D TUN_WRITE; - } - if (flags & (IOW_TO_LINK | IOW_MBUF)) - { - ret |=3D SOCKET_WRITE; - } - multi_io->udp_flags =3D ret; - } - else - { - /* slow path - delegate to io_wait_dowork_udp to calculate flags */ - get_io_flags_dowork_udp(c, multi_io, flags); - } -} - -void -io_wait_dowork(struct context *c, const unsigned int flags) +io_wait(struct context *c, const unsigned int flags) { unsigned int out_socket; unsigned int out_tuntap; diff --git a/src/openvpn/forward.h b/src/openvpn/forward.h index 06808b9..7f6f666 100644 --- a/src/openvpn/forward.h +++ b/src/openvpn/forward.h @@ -68,12 +68,9 @@ extern counter_type link_write_bytes_global; -void get_io_flags_dowork_udp(struct context *c, struct multi_io *multi_io, - const unsigned int flags); - void get_io_flags_udp(struct context *c, struct multi_io *multi_io, const = unsigned int flags); -void io_wait_dowork(struct context *c, const unsigned int flags); +void io_wait(struct context *c, const unsigned int flags); void pre_select(struct context *c); @@ -382,34 +379,6 @@ return flags; } -/* - * This is the core I/O wait function, used for all I/O waits except - * for the top-level server sockets. - */ -static inline void -io_wait(struct context *c, const unsigned int flags) -{ - if (proto_is_dgram(c->c2.link_sockets[0]->info.proto) && c->c2.fast_io - && (flags & (IOW_TO_TUN | IOW_TO_LINK | IOW_MBUF))) - { - /* fast path -- only for TUN/TAP/UDP writes */ - unsigned int ret =3D 0; - if (flags & IOW_TO_TUN) - { - ret |=3D TUN_WRITE; - } - if (flags & (IOW_TO_LINK | IOW_MBUF)) - { - ret |=3D SOCKET_WRITE; - } - c->c2.event_set_status =3D ret; - } - else - { - /* slow path */ - io_wait_dowork(c, flags); - } -} static inline bool connection_established(struct context *c) diff --git a/src/openvpn/init.c b/src/openvpn/init.c index fc079e1..cd01520 100644 --- a/src/openvpn/init.c +++ b/src/openvpn/init.c @@ -4139,34 +4139,6 @@ } } -/* - * Fast I/O setup. Fast I/O is an optimization which only works - * if all of the following are true: - * - * (1) The platform is not Windows - * (2) --proto udp is enabled - * (3) --shaper is disabled - */ -static void -do_setup_fast_io(struct context *c) -{ - if (c->options.fast_io) - { -#ifdef _WIN32 - msg(M_INFO, "NOTE: --fast-io is disabled since we are running on W= indows"); -#else - if (c->options.shaper) - { - msg(M_INFO, "NOTE: --fast-io is disabled since we are using --= shaper"); - } - else - { - c->c2.fast_io =3D true; - } -#endif - } -} - static void do_signal_on_tls_errors(struct context *c) { @@ -4513,12 +4485,6 @@ } #endif - /* should we enable fast I/O? */ - if (c->mode =3D=3D CM_P2P || c->mode =3D=3D CM_TOP) - { - do_setup_fast_io(c); - } - /* should we throw a signal on TLS errors? */ do_signal_on_tls_errors(c); diff --git a/src/openvpn/mudp.c b/src/openvpn/mudp.c index 5de3af6..92d4dda 100644 --- a/src/openvpn/mudp.c +++ b/src/openvpn/mudp.c @@ -339,9 +339,7 @@ multi_process_io_udp(struct multi_context *m, struct link_socket *sock) { const unsigned int status =3D m->multi_io->udp_flags; - const unsigned int mpp_flags =3D m->top.c2.fast_io - ? (MPP_CONDITIONAL_PRE_SELECT | MPP= _CLOSE_ON_SIGNAL) - : (MPP_PRE_SELECT | MPP_CLOSE_ON_SI= GNAL); + const unsigned int mpp_flags =3D (MPP_PRE_SELECT | MPP_CLOSE_ON_SIGNAL= ); /* UDP port ready to accept write */ if (status & SOCKET_WRITE) diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c index 153695c..d2d9ba8e 100644 --- a/src/openvpn/multi.c +++ b/src/openvpn/multi.c @@ -3008,8 +3008,7 @@ bool ret =3D true; if (!IS_SIG(&mi->context) - && ((flags & MPP_PRE_SELECT) - || ((flags & MPP_CONDITIONAL_PRE_SELECT) && !ANY_OUT(&mi->cont= ext)))) + && ((flags & MPP_PRE_SELECT))) { #if defined(ENABLE_ASYNC_PUSH) bool was_unauthenticated =3D true; diff --git a/src/openvpn/multi.h b/src/openvpn/multi.h index a44f9f2..1209dfb 100644 --- a/src/openvpn/multi.h +++ b/src/openvpn/multi.h @@ -271,10 +271,9 @@ bool multi_process_timeout(struct multi_context *m, const unsigned int mpp= _flags); -#define MPP_PRE_SELECT (1 << 0) -#define MPP_CONDITIONAL_PRE_SELECT (1 << 1) -#define MPP_CLOSE_ON_SIGNAL (1 << 2) -#define MPP_RECORD_TOUCH (1 << 3) +#define MPP_PRE_SELECT (1 << 0) +#define MPP_CLOSE_ON_SIGNAL (1 << 1) +#define MPP_RECORD_TOUCH (1 << 2) /*************************************************************************= */ diff --git a/src/openvpn/openvpn.h b/src/openvpn/openvpn.h index a198fcf..3e1ae78 100644 --- a/src/openvpn/openvpn.h +++ b/src/openvpn/openvpn.h @@ -420,9 +420,6 @@ struct env_set *es; bool es_owned; - /* don't wait for TUN/TAP/UDP to be ready to accept write */ - bool fast_io; - /* --ifconfig endpoints to be pushed to client */ bool push_request_received; bool push_ifconfig_defined; diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 2d1f740..d01ec47 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -285,7 +285,6 @@ #if ENABLE_IP_PKTINFO "--multihome : Configure a multi-homed UDP server.\n" #endif - "--fast-io : Optimize TUN/TAP/UDP writes.\n" "--remap-usr1 s : On SIGUSR1 signals, remap signal (s=3D'SIGHUP' or '= SIGTERM').\n" "--persist-tun : Keep tun/tap device open across SIGUSR1 or --ping-r= estart.\n" "--persist-remote-ip : Keep remote IP address across SIGUSR1 or --ping= -restart.\n" @@ -1795,8 +1794,6 @@ #endif SHOW_INT(sockflags); - SHOW_BOOL(fast_io); - SHOW_INT(comp.alg); SHOW_INT(comp.flags); @@ -6592,7 +6589,7 @@ else if (streq(p[0], "fast-io") && !p[1]) { VERIFY_PERMISSION(OPT_P_GENERAL); - options->fast_io =3D true; + msg(M_WARN, "DEPRECATED OPTION: --fast-io option ignored."); } else if (streq(p[0], "inactive") && p[1] && !p[3]) { diff --git a/src/openvpn/options.h b/src/openvpn/options.h index d331033..555d9dd 100644 --- a/src/openvpn/options.h +++ b/src/openvpn/options.h @@ -406,9 +406,6 @@ int status_file_version; int status_file_update_freq; - /* optimize TUN/TAP/UDP writes */ - bool fast_io; - struct compress_options comp; /* buffer sizes */ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1425?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I2c0a0b55ad56e704d4bd19f1fbc1c30c83fae14c Gerrit-Change-Number: 1425 Gerrit-PatchSet: 7 Gerrit-Owner: its_Giaan Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --Tgi9//H1Ha4= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #7 to the change originally created by its_Giaan.<= /p>

Vi= ew Change

The following approvals got outdated and were removed: Code-Review+2 by cron2

Deprecate --fast-io option

R= ecent changes to the event loop revealed that
the --fast-io option is no= w partially broken and
may cause "unroutable control packet" i= ssues.

As agreed during the last hackathon, this patch
turns --fa= st-io into a no-op and emits a warning
when it is used.

Additiona= lly, the MPP_CONDITIONAL_PRE_SELECT
flag has been removed as it was part= of the
same code path and no longer needed.

Change-Id: I2c0a0b55= ad56e704d4bd19f1fbc1c30c83fae14c
Signed-off-by: Gianmarco De Gregori <= ;gianmarco@...2726...>
Acked-by: Gert Doering <gert@...1296...>=
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1425
Message-Id: = <20251211105956.22789-1-gert@...1296...>
URL: https://www.mail-arc= hive.com/openvpn-devel@lists.sourceforge.net/msg35024.html
Signed-off-by= : Gert Doering <gert@...1296...>
---
M doc/man-sections/generic= -options.rst
M doc/man-sections/unsupported-options.rst
M src/openvpn= /forward.c
M src/openvpn/forward.h
M src/openvpn/init.c
M src/open= vpn/mudp.c
M src/openvpn/multi.c
M src/openvpn/multi.h
M src/openv= pn/openvpn.h
M src/openvpn/options.c
M src/openvpn/options.h
11 fi= les changed, 18 insertions(+), 126 deletions(-)

=
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/25/1425/7
diff --git a/doc/man-sections/generic-options.rst b/doc/man-sections/ge=
neric-options.rst
index 882cf28..a9232ce 100644
<= span>--- a/doc/man-sections/generic-options.rst
+++ b/doc/m= an-sections/generic-options.rst
@@ -211,18 +211,6 @@=
``--show-engines`` standalone option to list the crypto engine= s which
are supported by OpenSSL.

---fast-io
= - Optimize TUN/TAP/UDP I/O writes by avoiding a call to
- poll/epoll/select prior to the write o= peration. The purpose of such a
- call would normally be to block until the device or socket is r= eady to
- accept the w= rite. Such blocking is unnecessary on some platforms which
- don't support write blocking on = UDP sockets or TUN/TAP devices. In such
- cases, one can optimize the event loop by avoiding the = poll/epoll/select
- ca= ll, improving CPU efficiency by 5% to 10%.
-
-= This option can only be used on non-Windows systems, when ``--proto
- udp`` is specified, and w= hen ``--shaper`` is *NOT* specified.
-
--group group
Similar t= o the ``--user`` option, this option changes the group ID of
the OpenVPN process to ``group`` after initialization.

diff --git a/doc/man-sections/unsupported-options.rst b/doc/man-sections/u= nsupported-options.rst

index b646991..f1332f3 100644=
--- a/doc/man-sections/unsupported-options.rst
++= + b/doc/man-sections/unsupported-options.rst
@@ -9,6 +9,10 = @@
Removed in OpenVPN 2.5. This should be replaced with=
``--verify-client-cert none``.
=
+--fast-io
+ Ignored since OpenVPN 2.7. This op= tion became broken due to changes
+ to the event loop.
+
--http-proxy-retry
Remo= ved in OpenVPN 2.4. All retries are controlled by ``--max-connect-retry``.=

diff --git a/src/openvpn/forward.c b/src= /openvpn/forward.c
index 913fb92..492e667 100644
= --- a/src/openvpn/forward.c
+++ b/src/openvpn/forward= .c
@@ -2154,13 +2154,12 @@
}

/*
- * in point-to-point mode and for= UDP sockets in
+ * W= ait for I/O events. Used for UDP sockets in
* point-to-m= ultipoint mode.
*/

voi= d
-get_io_flags_dowork_= udp(struct context *c, struct multi_io *multi_io, const unsigned int flags)=
+get_io_flags_udp(st= ruct context *c, struct multi_io *multi_io, const unsigned int flags)
{
unsigned int out_socket;

@@ -2168,33 +2167,12 @@
multi_io-&g= t;udp_flags =3D (out_socket << SOCKET_SHIFT);
}

+/*

+ * This is the core I/O= wait function, used for all I/O waits except
+ * for the top-level server sockets.
+ */
void=
-get_io_flags_udp(struct cont= ext *c, struct multi_io *multi_io, const unsigned int flags)
-{
- multi_io->udp_flags =3D ES_ERROR;
- if (c->c2.fast_io && (= flags & (IOW_TO_TUN | IOW_TO_LINK | IOW_MBUF)))
- {
- /* fast path -- only for TUN/TAP/UDP writes */

- unsigned int ret = =3D 0;
- if (fla= gs & IOW_TO_TUN)
- = {
- r= et |=3D TUN_WRITE;
- = }
- if (fla= gs & (IOW_TO_LINK | IOW_MBUF))
- {
= - ret |=3D SOCKET_WRITE;
- }
- multi_io->udp_flags =3D ret;
- }
- else
- {
- /* slow path - de= legate to io_wait_dowork_udp to calculate flags */
- get_io_flags_dowork_udp(c, multi_io, f= lags);
- }-}
-
-io_wait_dowork= (struct context *c, const unsigned int flags)
+io_wait(struct context *c, const unsigned int fla= gs)
{
unsigned int out_socket;=
unsigned int out_tuntap;
diff --git a/src/op= envpn/forward.h b/src/openvpn/forward.h
index 06808b9..7f6f= 666 100644
--- a/src/openvpn/forward.h
+++ = b/src/openvpn/forward.h
@@ -68,12 +68,9 @@
=
extern counter_type link_write_bytes_global;
<= span>

-void get_io_fla= gs_dowork_udp(struct context *c, struct multi_io *multi_io,
- const un= signed int flags);
-

void get_io_flags_udp(struct context *c, struct multi_io *mu= lti_io, const unsigned int flags);

-void io_wait_dowork(struct context *c, cons= t unsigned int flags);
-/*
- * Thi= s is the core I/O wait function, used for all I/O waits except
- * for the top-level server socket= s.
- */
-static inline void
-io_wait(struct context *c, const unsigne= d int flags)
-{<= br>- if (proto_is_dgram(c->= c2.link_sockets[0]->info.proto) && c->c2.fast_io
- && (flags & (I= OW_TO_TUN | IOW_TO_LINK | IOW_MBUF)))
- {
-= /* fast path -- only for TUN/TAP/UDP writes */
- unsigned int ret =3D 0;
= - if (flags & IOW_TO_T= UN)
- {- ret |=3D TUN_WRITE= ;
- }
= - if (flags & (IOW_TO_= LINK | IOW_MBUF))
- = {
- ret = |=3D SOCKET_WRITE;
- = }
- c->c= 2.event_set_status =3D ret;
- }
- else
- {
- /* slow path */
- io_wait_dowork(c, flags);
- }
-}

stat= ic inline bool
connection_established(struct context *c)
diff --git a/src/openvpn/init.c b/src/openvpn/init.c<= br>index fc079e1..cd01520 100644
--- a/src/openvpn/in= it.c
+++ b/src/openvpn/init.c
@@ -4139,34 += 4139,6 @@
}
}

-/*
- * Fast I/O setup. Fast I/O is an optimizatio= n which only works
- * = if all of the following are true:
- *
- * (1) = The platform is not Windows
- * (2) --proto udp is enabled
- * (3) --shaper is disabled
- */
-static void
-do_setup= _fast_io(struct context *c)
-{
- if (c->= options.fast_io)
- {=
-#ifdef _WIN32<= br>- msg(M_INFO, "NOT= E: --fast-io is disabled since we are running on Windows");
= -#else
- if (c->options.shaper)
- {

- msg(M_INFO, "NOTE: --fast-io is= disabled since we are using --shaper");
- }
- else
- = c->c2.fast_io =3D true;
- }
-#end= if
- }
-}
-
static void
do_signa= l_on_tls_errors(struct context *c)
{
@@ -4= 513,12 +4485,6 @@
}
#endif
=
- /* should = we enable fast I/O? */
= - if (c->mode =3D=3D CM_P2P || c->mode =3D=3D CM_TOP)
- {
- do_setup_fast_io(c);
- }
-
/* should we throw a signal on TLS er= rors? */
do_signal_on_tls_errors(c);
=
diff --git a/src/openvpn/mudp.c b/src/openvpn/mudp.c

index 5de3af6..92d4dda 100644
--- a/src/openvpn/= mudp.c
+++ b/src/openvpn/mudp.c
@@ -339,9 += 339,7 @@
multi_process_io_udp(struct multi_context *m, str= uct link_socket *sock)
{
const unsign= ed int status =3D m->multi_io->udp_flags;
- const unsigned int mpp_flags =3D m->top.c2= .fast_io
- = ? (MPP_CONDITIONAL_PRE_SELECT | MPP_CLOSE_ON_SIGN= AL)
- = : (MPP_PRE_SELECT | MPP_CLOSE_ON_SIGNAL);
+ const unsigned int mpp_flags= =3D (MPP_PRE_SELECT | MPP_CLOSE_ON_SIGNAL);

/* UDP port ready to accept write */
if (stat= us & SOCKET_WRITE)
diff --git a/src/openvpn/multi.c b/s= rc/openvpn/multi.c
index 153695c..d2d9ba8e 100644--- a/src/openvpn/multi.c
+++ b/src/openvpn/multi.c<= /span>
@@ -3008,8 +3008,7 @@
bool ret =3D tru= e;

if (!IS_SIG(&mi->context)<= /span>
- && ((f= lags & MPP_PRE_SELECT)
- || ((flags & MPP_CONDITIONAL_PRE_SELECT) && !A= NY_OUT(&mi->context))))
+ && ((flags & MPP_PRE_SELECT)))
{

#if defined(ENABLE_ASYNC_PUSH)
= bool was_unauthenticated =3D true;
diff --git a/src= /openvpn/multi.h b/src/openvpn/multi.h
index a44f9f2..1209d= fb 100644
--- a/src/openvpn/multi.h
+++ b/s= rc/openvpn/multi.h
@@ -271,10 +271,9 @@

bool multi_process_timeout(struct multi_context *m, const u= nsigned int mpp_flags);

-#define MPP_PRE_SELECT (1 << 0)
-#define MPP_CONDITIONAL_PRE= _SELECT (1 << 1)
= -#define MPP_CLOSE_ON_SIGNAL (1 << 2)
-#define MPP_RECORD_TOUCH (1 <<= 3)
+#define MPP_PRE_= SELECT (1 << 0)
+#define MPP_CLOSE_ON_SIGNAL (1 << 1)
+#define MPP_RECORD_TOUCH (1 << 2)



/***********************= ***************************************************/
diff -= -git a/src/openvpn/openvpn.h b/src/openvpn/openvpn.h
index = a198fcf..3e1ae78 100644
--- a/src/openvpn/openvpn.h<= br>+++ b/src/openvpn/openvpn.h
@@ -420,9 +420,6 @@

struct env_set *es;
bool es_owned;<= /span>

- = /* don't wait for TUN/TAP/UDP to be ready to accept write */
= - bool fast_io;
-

/* --ifconfig = endpoints to be pushed to client */
bool push_request_= received;
bool push_ifconfig_defined;
= diff --git a/src/openvpn/options.c b/src/openvpn/options.c
= index 2d1f740..d01ec47 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -285,7 +285,6= @@
#if ENABLE_IP_PKTINFO
"--mul= tihome : Configure a multi-homed UDP server.\n"
#= endif
- "--fast= -io : Optimize TUN/TAP/UDP writes.\n"
"= ;--remap-usr1 s : On SIGUSR1 signals, remap signal (s=3D'SIGHUP' o= r 'SIGTERM').\n"
"--persist-tun : = Keep tun/tap device open across SIGUSR1 or --ping-restart.\n" "--persist-remote-ip : Keep remote IP address across SIGU= SR1 or --ping-restart.\n"
@@ -1795,8 +1794,6 @@=
#endif
SHOW_INT(sockflags);

- SHOW_BOOL(fast_= io);
-
= SHOW_INT(comp.alg);
SHOW_INT(comp.flags);<= br>
@@ -6592,7 +6589,7 @@
else = if (streq(p[0], "fast-io") && !p[1])
= {
VERIFY_PERMISSION(OPT_P_GENERAL);
- options->fast_io =3D tru= e;
+ msg(M_WAR= N, "DEPRECATED OPTION: --fast-io option ignored.");
}
else if (streq(p[0], "inactive") &= amp;& p[1] && !p[3])
{
dif= f --git a/src/openvpn/options.h b/src/openvpn/options.h
ind= ex d331033..555d9dd 100644
--- a/src/openvpn/options.h
+++ b/src/openvpn/options.h
@@ -406,9 +406,6 @@=
int status_file_version;
int sta= tus_file_update_freq;

- /* optimize TUN/TAP/UDP writes */
- bool fast_io;
-
struct compress_optio= ns comp;

/* buffer sizes */

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

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I2c0a0b55ad56e704d4bd19f1fbc= 1c30c83fae14c
Gerrit-Change-Number: 1425
Gerrit-PatchSet: 7
Gerrit-Owner: its_Giaan <gianmarco@...2786...= ..>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --Tgi9//H1Ha4=--