Skip to content

Error out if user uses > 255 Sending Threads#826

Merged
zakird merged 4 commits intomainfrom
phillip/cap-sending-threads
Mar 15, 2024
Merged

Error out if user uses > 255 Sending Threads#826
zakird merged 4 commits intomainfrom
phillip/cap-sending-threads

Conversation

@phillip-stephens
Copy link
Contributor

Not sure why any user would want to use this many, but since we're using a uint_8 to store the number of sending threads, > 255 wraps around. This leads to an unexpected number of sending threads used, at least from a user's perspective that doesn't know this detail. Setting a log_fatal to prevent this.

@phillip-stephens phillip-stephens marked this pull request as ready for review March 15, 2024 19:29
@phillip-stephens phillip-stephens requested a review from zakird March 15, 2024 19:30
@zakird zakird merged commit c8a03c8 into main Mar 15, 2024
@zakird zakird deleted the phillip/cap-sending-threads branch March 15, 2024 19:39
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