Browse code

app_perl: docs for parse_mode parameter

Daniel-Constantin Mierla authored on 07/07/2022 07:15:12
Showing 1 changed files
... ...
@@ -235,6 +235,30 @@ modparam("app_perl", "reset_cycles", 100000)
235 235
 ...
236 236
 modparam("app_perl", "perl_destroy_func", "my_perl_destroy")
237 237
 ...
238
+</programlisting>
239
+			</example>
240
+		</section>
241
+
242
+		<section id="app_perl.p.parse_mode">
243
+			<title><varname>parse_mode</varname> (int)</title>
244
+			<para>
245
+			Control how to behave on perl_parse() return code - on some versions
246
+			it is the value for application exit and can break reloading.
247
+			</para>
248
+			<para>
249
+			If set to 0, continue even of perl_parse() returns non-zero, logging
250
+			a warning. If set to 1, realod fails on non-zero return code and
251
+			triggers an exit.
252
+			</para>
253
+			<para>
254
+			Default value is <emphasis>0</emphasis>.
255
+			</para>
256
+			<example>
257
+			<title>Set <varname>parse_mode</varname> parameter</title>
258
+			<programlisting format="linespecific">
259
+...
260
+modparam("app_perl", "parse_mode", 1)
261
+...
238 262
 </programlisting>
239 263
 			</example>
240 264
 		</section>