Skip to content

docs: say that an outbound probe needs a started core - #347

Merged
aimalygin merged 1 commit into
aimalygin:mainfrom
huzgnm:docs/probe-requires-start
Nov 24, 2026
Merged

aimalygin merged 1 commit into
aimalygin:mainfrom
huzgnm:docs/probe-requires-start

Conversation

@huzgnm

@huzgnm huzgnm commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Swift and Kotlin doc comments of probeOutboundURL / probeOutboundUrl say "the running core", but not what a host gets on a core it loaded and has not started yet: Swift throws XrayCoreError.notRunning before reaching the C call, Kotlin XrayCoreException with RUNTIME_ERROR from it. docs/ffi.md and the C header already document the RUNTIME_ERROR, and ffi_outbound_probe_validates_outputs_handle_and_lifecycle tests it.

This names the error in both comments and points to preflightStartupProbe(), which runs the configured startup probe before start. No code change.

Fixes #345

Verification

  • Added or updated regression tests — not applicable (doc comments only; behaviour already covered by ffi_outbound_probe_validates_outputs_handle_and_lifecycle)
  • Added or updated benchmarks for performance claims — not applicable
  • Ran formatting, strict Clippy, and relevant tests — not applicable, comments only
  • Updated compatibility or user documentation — Swift and Kotlin doc comments
  • Used only synthetic endpoints and credentials

Compatibility and security

None.

The Swift and Kotlin doc comments of probeOutboundURL/probeOutboundUrl
say "the running core", but not what a host gets on a core it loaded
and has not started yet: Swift throws XrayCoreError.notRunning before
reaching the C call, Kotlin XrayCoreException with RUNTIME_ERROR from
it. docs/ffi.md and the C header already document the RUNTIME_ERROR,
and ffi_outbound_probe_validates_outputs_handle_and_lifecycle tests it.

Name the error in both comments and point to preflightStartupProbe,
which runs the configured startup probe before start. No code change.
@aimalygin
aimalygin merged commit 461d3cf into aimalygin:main Nov 24, 2026
aimalygin added a commit that referenced this pull request Nov 24, 2026
Contributor wave 14: VMess link TLS fields, provider app-message hook, traffic-triggered re-probes (#346, #347, #349, #308)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: probeOutboundURL on a loaded but not started core throws "xray core is not running"

2 participants