ucx icon indicating copy to clipboard operation
ucx copied to clipboard

UCP/API: extend ucp_ep_query for debug info string

Open evgeny-leksikov opened this issue 4 years ago • 3 comments

What

Add debug info string to ucp_ep_query() API

Why

Show the internal state of the connection, including underlying transport state, for example:

  • When the application created new connection
  • When the application detected a problem with a connects, such as no progress / "stuck" requests

evgeny-leksikov avatar Aug 20 '21 19:08 evgeny-leksikov

@shamisp @tonycurtis can you pls take a look?

yosefe avatar Aug 24 '21 08:08 yosefe

It is a bit vague (from ucp.h documentation) how the debug string used. If the code compiled with debug disabled, does the library still report debug info ?

shamisp avatar Aug 24 '21 13:08 shamisp

@yosefe I'm not sure if this the right way to go for extracting debug information. The debug output string is not standardized and available only within certain build options. The justification for the patch is not very clear - why applications need to know the internal state of connection ? Application developers need this only for debug purpose and there are other tools for this - tracer, etc.

shamisp avatar Aug 24 '21 22:08 shamisp