# Can I apply a timeout for a spectific query or client request?

**URL:** <https://forum.kx.com/t/can-i-apply-a-timeout-for-a-spectific-query-or-client-request/12448>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [March 17, 2022, 12:04pm UTC](https://forum.kx.com/t/can-i-apply-a-timeout-for-a-spectific-query-or-client-request/12448 "2022-03-17T12:04:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![k-mambo1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@k-mambo1](https://forum.kx.com/u/k-mambo1)\
**Post date:** [March 17, 2022, 12:04pm UTC](https://forum.kx.com/t/can-i-apply-a-timeout-for-a-spectific-query-or-client-request/12448/1 "2022-03-17T12:04:00Z")

</div>

currently, there is a phenomenon in which there is no response between processes due to some request, but it is difficult to determine why.&nbsp;I know that the default timeout for the process can be set to&nbsp;\T commands&nbsp;.&nbsp;I want to keep the default timeout to 60 seconds and limit it to 5 seconds only for specific query requests.&nbsp;&nbsp;Is there a way?

&nbsp;

---

<div class="post-metadata">

**Author:** ![pmallon1](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pmallon1](https://forum.kx.com/u/pmallon1)\
**Post date:** [March 17, 2022, 12:53pm UTC](https://forum.kx.com/t/can-i-apply-a-timeout-for-a-spectific-query-or-client-request/12448/2 "2022-03-17T12:53:00Z")

</div>

Hi,

Maybe something like this on the process servicing the queries:

&nbsp;

funcTimeouts:`func1``func2`func3!60 5 10;

.z.pg:{ system T , string&nbsp;funcTimeouts x 0; value x }

Not complete above as need to consider funcs not in the dictionary and possibly resetting T after. Also, above assumes you call a function over the handle in list format.

Adding logging to .z.pg might help you identify the issue too.

Let me know if this helps.

Patrick

&nbsp;
