Link Call with dynamic timeout duration

I I am looking for a way to address a link call node using dynamic timeout times.

In other words, that I can specify a value msg.timeout and this is used? Unfortunately, I haven't found a way at the moment, so I'm using a switch node as a workaround, which links to different link call nodes with a fixed timeout duration depending on the msg.timeout value.

This works, but is not really pretty.....

Have I overlooked something that could be solved more elegantly?

S.

Looking at the code for the link call node, no it's not possible to set a dynamic timeout.

But that could be "fixed" by doing something like this (warning: pseudo code):

...
                        }, !isNaN(parseFloat(msg.timeout)) || timeout)

at around here.