2
0
Эх сурвалжийг харах

async: cfg functions cannot be used in branch_route

- that routing block is processing outgoing brnaches, not requests
- reported by Jasmin Schnatterbeck, FS#190
Daniel-Constantin Mierla 13 жил өмнө
parent
commit
22278ed608

+ 2 - 2
modules/async/async_mod.c

@@ -56,9 +56,9 @@ struct tm_binds tmb;
 
 static cmd_export_t cmds[]={
 	{"async_route", (cmd_function)w_async_route, 2, fixup_async_route,
-		0, REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE},
+		0, REQUEST_ROUTE|FAILURE_ROUTE},
 	{"async_sleep", (cmd_function)w_async_sleep, 1, fixup_async_sleep,
-		0, REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE},
+		0, REQUEST_ROUTE|FAILURE_ROUTE},
 	{0, 0, 0, 0, 0, 0}
 };
 

+ 4 - 0
modules/async/doc/async_admin.xml

@@ -112,6 +112,8 @@ modparam("async", "workers", 2)
 		that the execution of config after resume will end once the
 		route[routename] is finished.
 		</para>
+		<para>
+		This function can be used from REQUEST_ROUTE.
 		<example>
 		<title><function>async_sleep</function> usage</title>
 		<programlisting format="linespecific">
@@ -148,6 +150,8 @@ route[RESUME] {
 		that the execution of config after resume will end once the route block
 		where async_sleep() is called is finished.
 		</para>
+		<para>
+		This function can be used from REQUEST_ROUTE.
 		<example>
 		<title><function>async_sleep</function> usage</title>
 		<programlisting format="linespecific">