You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
connect_to_chassis_by_address and add_network_chassis may perform the operation twice #85
connect_to_chassis_by_address and add_network_chassis return a string, so they call the C API once to get the string size and again to get the string contents. However, these methods have side-effects, so I think both calls perform the operation.
The comments in the C API source say // Double-call seems kind of silly here, but at least this function *tries* to be idempotent., so I think we realized this was a potential problem.
Repro or Code Sample
Not provided.
Expected Behavior
Calling connect_to_chassis_by_address or add_network_chassis performs the operation once.
Current Behavior
Calling connect_to_chassis_by_address or add_network_chassis performs the operation twice.
Possible Solution
One solution is to pre-allocate a larger buffer for the string output. If this buffer is too small, then the method can either return an error or continue to do a "double call" and perform the operation twice.
The agent encountered an error and was unable to start working on this issue: Please try again later, or contact support if the problem persists. (Request id: 8AFE:0ECE:A7432E:F9E920:6B03CF70)
The agent encountered an error and was unable to start working on this issue: Please try again later, or contact support if the problem persists. (Request id: F721:0ED7:3FD9828:6009710:6B03D0C1)
Activity
Copilot commentedon Nov 23, 2026
The agent encountered an error and was unable to start working on this issue: Please try again later, or contact support if the problem persists. (Request id: 8AFE:0ECE:A7432E:F9E920:6B03CF70)
Copilot commentedon Nov 23, 2026
The agent encountered an error and was unable to start working on this issue: Please try again later, or contact support if the problem persists. (Request id: F721:0ED7:3FD9828:6009710:6B03D0C1)