tcpdirect icon indicating copy to clipboard operation
tcpdirect copied to clipboard

[Question] Listen for many connections

Open vans239 opened this issue 1 year ago • 2 comments

Per documentation one stack can have at most max_tcp_endpoints connections. When listening zocket is created , it's assigned to the stack. All accepted zockets are handled by same stack.

Is it possible to have more than 64 accepted concurrent zockets by same listening zocket?

vans239 avatar May 21 '24 15:05 vans239

Per documentation one stack can have at most max_tcp_endpoints connections. When listening zocket is created , it's assigned to the stack. All accepted zockets are handled by same stack.

Is it possible to have more than 64 accepted concurrent zockets by same listening zocket?

its not possible, because tcpdirect internally uses bitmaps as 64bit unsigned integer to retrieve zocket id fast (for pending RX/TX) using bitwise operations. its hardcoded in code to max 64. You will have to add more stacks to add more endpoints

Naseefabu avatar Sep 24 '25 07:09 Naseefabu

You will have to add more stacks to add more endpoints

Does it mean i can not have more that 63 concurrent accepted zockets for the single endpoint (single port)? I can not listen for same port on multiple stacks.

vans239 avatar Sep 24 '25 08:09 vans239