# 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/13494>\
**Category:** Community Support\
**Tags:** imported, kdb-and-q\
**Created:** [March 17, 2022, 12:00am UTC](https://forum.kx.com/t/can-i-apply-a-timeout-for-a-spectific-query-or-client-request/13494 "2022-03-17T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![k-mambo](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/k-mambo/32/128_2.png) [@k-mambo](https://forum.kx.com/u/k-mambo)\
**Post date:** [March 17, 2022, 12:00am UTC](https://forum.kx.com/t/can-i-apply-a-timeout-for-a-spectific-query-or-client-request/13494/1 "2022-03-17T00:00:00Z")

</div>

[https://learninghub.kx.com/forums/topic/can-i-apply-a-timeout-for-a-spectific-query-or-client-request](https://learninghub.kx.com/forums/topic/can-i-apply-a-timeout-for-a-spectific-query-or-client-request)

currently, there is a phenomenon in which there is no response between processes due to some request, but it is difficult to determine why. I know that the default timeout for the process can be set to [T commands](https://code.kx.com/q/basics/syscmds/#t-timeout") . I want to keep the default timeout to 60 seconds and limit it to 5 seconds only for specific query requests. Is there a way?

&nbsp;

---

<div class="post-metadata">

**Author:** ![pmallon](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@pmallon](https://forum.kx.com/u/pmallon)\
**Post date:** [March 17, 2022, 12:00am UTC](https://forum.kx.com/t/can-i-apply-a-timeout-for-a-spectific-query-or-client-request/13494/2 "2022-03-17T00:00: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 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;
