# Link Call with dynamic timeout duration

**URL:** https://discourse.nodered.org/t/link-call-with-dynamic-timeout-duration/94289
**Category:** Feature Requests
**Created:** [1 January 2025 13:53 UTC](https://discourse.nodered.org/t/link-call-with-dynamic-timeout-duration/94289 "2025-01-01T13:53:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![theArcher73](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thearcher73/32/97655_2.png) [@theArcher73](https://discourse.nodered.org/u/theArcher73)
#### Post date: [1 January 2025 13:53 UTC](https://discourse.nodered.org/t/link-call-with-dynamic-timeout-duration/94289/1 "2025-01-01T13:53:16Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)
#### Post date: [1 January 2025 14:10 UTC](https://discourse.nodered.org/t/link-call-with-dynamic-timeout-duration/94289/2 "2025-01-01T14:10:01Z")

</div>

Looking at the [code](https://github.com/node-red/node-red/blob/1e8f840993052b16427e2556545fe6ea40a409d1/packages/node_modules/%40node-red/nodes/core/common/60-link.js#L189-L192) 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):

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

```

at around [here](https://github.com/node-red/node-red/blob/1e8f840993052b16427e2556545fe6ea40a409d1/packages/node_modules/%40node-red/nodes/core/common/60-link.js#L235-L241).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [2 March 2025 14:10 UTC](https://discourse.nodered.org/t/link-call-with-dynamic-timeout-duration/94289/3 "2025-03-02T14:10:57Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
