Skip to content

Conversation

@fixeria
Copy link
Contributor

@fixeria fixeria commented Nov 24, 2025

The {sctp_error, ...} message is not documented, but it does exist. The logic that generates both {sctp, ...} and {sctp_error, ...} messages resides in inet_drv.c, specifically in packet_binary_message() and sctp_parse_async_event(). Within sctp_parse_async_event(), an error is indicated by replacing the initial sctp atom with sctp_error.

The following SCTP events are currently reported as errors:

  • SCTP_SEND_FAILED (becomes #sctp_send_failed{}),
  • SCTP_REMOTE_ERROR (becomes #sctp_remote_error{}),
  • SCTP_PARTIAL_DELIVERY_EVENT (becomes #sctp_pdapi_event{}).

Document this and update the example code to print errors.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 24, 2025

CT Test Results

    2 files     72 suites   1h 7m 1s ⏱️
1 687 tests 1 341 ✅ 345 💤 1 ❌
1 939 runs  1 535 ✅ 403 💤 1 ❌

For more details on these failures, see this check.

Results for commit 28743c0.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Nov 25, 2025
@bmk bmk added the testing currently being tested, tag is used by OTP internal CI label Nov 25, 2025
{sctp, Socket, FromIP, FromPort, {AncData, Data}}
```

Error-related events - such as `#sctp_send_failed{}`, `#sctp_pdapi_event`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Error-related events - such as `#sctp_send_failed{}`, `#sctp_pdapi_event`,
Error-related events - such as `#sctp_send_failed{}`, `#sctp_pdapi_event{}`,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Applied.

The `{sctp_error, ...}` message is not documented, but it does exist.
The logic that generates both `{sctp, ...}` and `{sctp_error, ...}`
messages resides in inet_drv.c, specifically in packet_binary_message()
and sctp_parse_async_event().  Within sctp_parse_async_event(), an error
is indicated by replacing the initial `sctp` atom with `sctp_error`.

The following SCTP events are currently reported as errors:

* SCTP_SEND_FAILED (becomes #sctp_send_failed{}),
* SCTP_REMOTE_ERROR (becomes #sctp_remote_error{}),
* SCTP_PARTIAL_DELIVERY_EVENT (becomes #sctp_pdapi_event{}).

Document this and update the example code to print errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:PS Assigned to OTP team PS testing currently being tested, tag is used by OTP internal CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants