Skip to content

Make HEP capture buffer size configurable via "bufsize="#320

Merged
andywolk merged 1 commit into
masterfrom
dmitry/hep_bufsize
Jun 11, 2026
Merged

Make HEP capture buffer size configurable via "bufsize="#320
andywolk merged 1 commit into
masterfrom
dmitry/hep_bufsize

Conversation

@morbit85

Copy link
Copy Markdown
Collaborator

The per-message HEP capture buffer was hardcoded to 16000 bytes in both the HEPv2 and HEPv3 builders, capping how much of a SIP message could be captured with no way to raise it.

Add a bufsize= parameter to the HEP capture URI, stored on the transport master as mr_capt_bufsize. Both builders read the cap from the master; when bufsize= is omitted it defaults to TPORT_CAPT_BUFSIZE_DEFAULT (16000), preserving prior behavior. Accepted range is [2048, 65000] (the HEPv3 envelope length is a u16).

Example: udp:host:9060;hep=3;bufsize=32768

The per-message HEP capture buffer was hardcoded to 16000 bytes in
both the HEPv2 and HEPv3 builders, capping how much of a SIP message
could be captured with no way to raise it.

Add a `bufsize=` parameter to the HEP capture URI, stored on the
transport master as `mr_capt_bufsize`. Both builders read the cap from
the master; when `bufsize=` is omitted it defaults to
`TPORT_CAPT_BUFSIZE_DEFAULT` (16000), preserving prior behavior.
Accepted range is [2048, 65000] (the HEPv3 envelope length is a u16).

Example: `udp:host:9060;hep=3;bufsize=32768`
@morbit85 morbit85 requested a review from andywolk June 11, 2026 14:17
@morbit85 morbit85 added the enhancement New feature or request label Jun 11, 2026
@andywolk andywolk merged commit bd16af3 into master Jun 11, 2026
11 checks passed
@andywolk andywolk deleted the dmitry/hep_bufsize branch June 11, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants