KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ Question about TCP and IPC handles limit

  • Question about TCP and IPC handles limit

    Posted by abubo on June 27, 2024 at 2:17 pm

    I use CsharpKDB to talk to KDB+ and found an issue to keep too many connection/handle to the port. Seems there is a limit that I cannot keep adding connections to more than 1008. And CsharpKDB c.close() doesn’t appears to reduce the existing open connections.

    It is easy to demo using IPC:
    on server side:
    >q.exe -p 5001
    q)count .z.H
    0

    at client side:
    >q
    q)h:hopen ::5001<br><span style="background-color: var(--bb-content-background-color); font-family: inherit; font-size: inherit; color: var(--bb-body-text-color);">q){h:hopen::12345} each til 1009

    ‘hop. OS reports: An existing connection was forcibly closed by the remote host.

    The server side will pop error ‘conn as well.

    Is this limit of 1008 an OS setting or q.exe limit? Anyway to work around it?

    Thanks,

    Ning

    rocuinneagain replied 4 months, 3 weeks ago 2 Members · 2 Replies
  • 2 Replies

Log in to reply.