The set of sync connect calls use a stack variable to track the connection status. This is ok because such calls block on event_poll() until the connection is established. However, event_poll may return early in case of errors (or timeout) while PDUs are still queued on the context (and pointing to a local stack). This cancels any pending PDUs before returning from sync connect calls. Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
46 KiB
46 KiB