# No timeout in subroutines

**URL:** <https://discourse.nodered.org/t/no-timeout-in-subroutines/84255>\
**Category:** General\
**Created:** [3 January 2024 13:29 UTC](https://discourse.nodered.org/t/no-timeout-in-subroutines/84255 "2024-01-03T13:29:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [3 January 2024 13:29 UTC](https://discourse.nodered.org/t/no-timeout-in-subroutines/84255/1 "2024-01-03T13:29:13Z")

</div>

I have a subroutine (that I call with a `link call` node) which doesn't have a `link out` node (i.e. "SendToTelegram"). How can I avoid the timeout of the` link call` node?

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [3 January 2024 13:32 UTC](https://discourse.nodered.org/t/no-timeout-in-subroutines/84255/2 "2024-01-03T13:32:56Z")

</div>

if you're not expecting a return for your `link call` just use a `link out` and `in` only without a `link-call`. A `link call` expects a return

No Return Expected  
 ![Screenshot 2024-01-03 at 13.32.15](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/4/e45648e629279e08d3c12097b9cfcc537ae78c91.png)

Return Expected

 ![Screenshot 2024-01-03 at 13.34.41](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/6/264b575fb860d1fc99f1c7440acff2776b1feb2b.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [3 January 2024 13:39 UTC](https://discourse.nodered.org/t/no-timeout-in-subroutines/84255/3 "2024-01-03T13:39:22Z")

</div>

Ad for those times when a naughty node swallows the reply (resulting in a timeout) you can `catch` the timeout error and act accordingly.

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [3 January 2024 14:08 UTC](https://discourse.nodered.org/t/no-timeout-in-subroutines/84255/4 "2024-01-03T14:08:34Z")

</div>

@Steve-Mcl I noticed that a subroutine cannot be part of a subflow. I am getting the error: `Missing return node information`

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [3 January 2024 14:16 UTC](https://discourse.nodered.org/t/no-timeout-in-subroutines/84255/5 "2024-01-03T14:16:28Z")

</div>

A link call **can** call out of a subflow to an external subroutine but it makes no sense to call into a subroutine.

Think for a second what a subflow does: it generates `n` copies of its self - so which link-in would a link-call call to?

Additionally, link-call does work internally in a subflow when calling a link-in that exists in the same subflow.

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [3 January 2024 14:19 UTC](https://discourse.nodered.org/t/no-timeout-in-subroutines/84255/6 "2024-01-03T14:19:35Z")

</div>

Got it. Thanks

---

<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:** [17 January 2024 14:19 UTC](https://discourse.nodered.org/t/no-timeout-in-subroutines/84255/7 "2024-01-17T14:19:43Z")

</div>

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