Skip to content

Comments

support for publish v2 for larger publish payload size#271

Open
mohitpubnub wants to merge 6 commits intomasterfrom
CLEN-3231-publishV2
Open

support for publish v2 for larger publish payload size#271
mohitpubnub wants to merge 6 commits intomasterfrom
CLEN-3231-publishV2

Conversation

@mohitpubnub
Copy link
Contributor

@mohitpubnub mohitpubnub commented Feb 10, 2026

feat: support higher message payload size for publish.

@pubnub-ops-terraform
Copy link

pubnub-ops-terraform commented Feb 10, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Mohit Tejani added 2 commits February 16, 2026 15:14
…s not needed

add headers in case of POST request when header is not for content header, add such header for Http request
Copy link
Contributor

@jakub-grzesiowski jakub-grzesiowski left a comment

Choose a reason for hiding this comment

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

One comment, other than that LGTM

// 155 bytes covers the fixed overhead from base URL components and
// middleware-injected query params: scheme, origin, path separators,
// uuid, pnsdk, requestid, instanceid, and timestamp.
int estimatedSize = 155;
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a chance this could change in the future and should be dynamically calculated instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Due to design of a common API execution flow, In the Endpoint class only that endpoint related path and query segments added. The common query param values are being added in later stage of API execution.
If we try to get all those params here then It would be good amount of code duplication.
Yes, In future, the design can be better to have those values dynamically calculated.

Mohit Tejani added 2 commits February 24, 2026 00:04
new tests added for message size exceeding 2MiB verification at parameter validation level.
increase request timeout default value for non subscribe http request so that history api can have more time to download the content
@mohitpubnub mohitpubnub self-assigned this Feb 24, 2026
@mohitpubnub mohitpubnub added status: done This issue is considered resolved. priority: medium This PR should be reviewed after all high priority PRs. labels Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: medium This PR should be reviewed after all high priority PRs. status: done This issue is considered resolved.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants