Skip to content

Set larger maxInboundMetadataSize to accommodate unbounded Server error messages#1397

Merged
Spikhalskiy merged 1 commit intotemporalio:masterfrom
Spikhalskiy:issue-1396
Aug 31, 2022
Merged

Set larger maxInboundMetadataSize to accommodate unbounded Server error messages#1397
Spikhalskiy merged 1 commit intotemporalio:masterfrom
Spikhalskiy:issue-1396

Conversation

@Spikhalskiy
Copy link
Copy Markdown
Contributor

@Spikhalskiy Spikhalskiy commented Aug 30, 2022

Sets larger maxInboundMetadataSize = MAX_INBOUND_MESSAGE_SIZE / 8 to accommodate unbounded Server error messages

Closes #1396

.maxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE)
// to accommodate unbounded Server status messages that may be over the default limit of
// 8Kb
.maxInboundMetadataSize(MAX_INBOUND_MESSAGE_SIZE / 8);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not use a separate constant for this? Not seeing how this is tied to message size.

Copy link
Copy Markdown
Contributor Author

@Spikhalskiy Spikhalskiy Aug 31, 2022

Choose a reason for hiding this comment

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

Well, this is the problem. What should be the number? And if we don’t know, how is a separate constant really better than tangling these two values together?
The benefit of connecting them is that it’s actually easier to say how many MAX_INBOUND_MESSAGE_SIZEs do we allocate on the buffers (like 1.12x right now).
But I don’t care much, we can chose some random really large size that “should be enough”. Like 1Mb.

@Spikhalskiy Spikhalskiy enabled auto-merge (squash) August 31, 2022 22:33
@Spikhalskiy Spikhalskiy merged commit a4e2ba0 into temporalio:master Aug 31, 2022
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.

Set larger maxInboundMetadataSize to accommodate unbounded Server error messages

2 participants