Skip to content

Conversation

@philipch07
Copy link
Contributor

Description

  • updates chunk header/type/shutdown to RFC 9260
  • updates the tests
  • fix references to point to RFC 9260

Reference issue

Part of #426.

@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

❌ Patch coverage is 76.47059% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.78%. Comparing base (a69c6a2) to head (a238f5e).

Files with missing lines Patch % Lines
chunk_shutdown.go 50.00% 2 Missing and 2 partials ⚠️
chunk_shutdown_ack.go 33.33% 1 Missing and 1 partial ⚠️
chunk_shutdown_complete.go 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #427      +/-   ##
==========================================
- Coverage   83.84%   83.78%   -0.07%     
==========================================
  Files          51       51              
  Lines        3448     3466      +18     
==========================================
+ Hits         2891     2904      +13     
- Misses        417      419       +2     
- Partials      140      143       +3     
Flag Coverage Δ
go 83.78% <76.47%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JoeTurki JoeTurki requested a review from Copilot November 2, 2025 05:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes incorrect chunk type constant mappings and enhances SCTP implementation with improved RFC 9260 compliance. The changes address a bug where ctCWR was incorrectly labeled as "ECNE" and adds missing chunk types.

Key changes:

  • Fixed bug where ctCWR returned "ECNE" instead of "CWR" and added missing ctECNE constant
  • Added missing ctAuth chunk type (RFC 4895)
  • Enhanced chunk header unmarshalling with stricter RFC 9260 validation
  • Added comprehensive test coverage for chunk header parsing edge cases

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
chunktype.go Fixed ctCWR/ECNE bug, added ctECNE and ctAuth constants, updated documentation to reference RFC 9260
chunktype_test.go Added test cases for ECNE and AUTH chunk types to verify String() output
chunkheader.go Refactored unmarshal logic with improved padding validation and added length validation
chunkheader_test.go Added comprehensive tests for header parsing, padding validation, and edge cases
chunk_shutdown.go Added flags validation, length validation, and improved RFC 9260 compliance
chunk_shutdown_test.go Added explanatory comments and removed invalid test case
chunk_shutdown_ack.go Added value length validation and improved documentation
chunk_shutdown_ack_test.go Added test names and removed invalid test case
chunk_shutdown_complete.go Added value length validation, improved error message, and documentation
chunk_shutdown_complete_test.go Added test names and flag test case

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@philipch07 philipch07 force-pushed the pch07/update-chunk-type-header-shutdown-9260 branch from 4b3a517 to a238f5e Compare November 2, 2025 05:46
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.

2 participants