# What is the default connection timeout when connecting using interface javakdb?

**URL:** <https://forum.kx.com/t/what-is-the-default-connection-timeout-when-connecting-using-interface-javakdb/14218>\
**Category:** Community Support\
**Tags:** imported, kdb-and-q\
**Created:** [May 14, 2025, 12:01pm UTC](https://forum.kx.com/t/what-is-the-default-connection-timeout-when-connecting-using-interface-javakdb/14218 "2025-05-14T12:01:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RVR](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@RVR](https://forum.kx.com/u/RVR)\
**Post date:** [May 14, 2025, 12:01pm UTC](https://forum.kx.com/t/what-is-the-default-connection-timeout-when-connecting-using-interface-javakdb/14218/1 "2025-05-14T12:01:10Z")

</div>

[https://learninghub.kx.com/forums/topic/what-is-the-default-connection-timeout-when-connecting-using-interface-javakdb](https://learninghub.kx.com/forums/topic/what-is-the-default-connection-timeout-when-connecting-using-interface-javakdb)

After a connection is established with javakdb; when there is no messages sent for sometime, I see that the connection is dropped as there is a error when trying to send some message again. Is there any default timeout? Can this be changed?

---

<div class="post-metadata">

**Author:** ![rocuinneagain](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/rocuinneagain/32/287_2.png) [@rocuinneagain](https://forum.kx.com/u/rocuinneagain)\
**Post date:** [May 14, 2025, 12:58pm UTC](https://forum.kx.com/t/what-is-the-default-connection-timeout-when-connecting-using-interface-javakdb/14218/2 "2025-05-14T12:58:56Z")

</div>

Neither kdb+ or it's Java interface implement any default closing of sockets.

You can set up connection open/closing logging handlers in kdb+ to help debug:

\*&nbsp;https://code.kx.com/q/ref/dotz/#zpc-close

\*&nbsp;https://code.kx.com/q/ref/dotz/#zpo-open

---

<div class="post-metadata">

**Author:** ![RVR](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@RVR](https://forum.kx.com/u/RVR)\
**Post date:** [May 15, 2025, 4:12pm UTC](https://forum.kx.com/t/what-is-the-default-connection-timeout-when-connecting-using-interface-javakdb/14218/3 "2025-05-15T16:12:28Z")

</div>

Thank You. This really helps in debugging.
