Skip to content

Comments

Fix the assertion of grpc_udp_server_add_port()#19574

Merged
nanahpang merged 1 commit intogrpc:masterfrom
legendtang:insufficientassert
Jul 11, 2019
Merged

Fix the assertion of grpc_udp_server_add_port()#19574
nanahpang merged 1 commit intogrpc:masterfrom
legendtang:insufficientassert

Conversation

@legendtang
Copy link
Contributor

grpc_udp_server_add_port() can return port = -1 when going fail.

@a11r a11r requested a review from nanahpang July 10, 2019 17:15
@nanahpang nanahpang added lang/c++ release notes: no Indicates if PR should not be in release notes kokoro:force-run labels Jul 11, 2019
Copy link
Contributor

@nanahpang nanahpang left a comment

Choose a reason for hiding this comment

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

Yes, it is a long-time error. I think it is better to be > 0 other then >= 0 though.

grpc_udp_server_add_port() can return port = -1 when going fail.
@nanahpang also recommands discarding port = 0
@legendtang legendtang force-pushed the insufficientassert branch from 5fca397 to 8e4d14f Compare July 11, 2019 14:20
@legendtang
Copy link
Contributor Author

Yes, it is a long-time error. I think it is better to be > 0 other then >= 0 though. Also, could you edit all the other lines in this test that make the same mistake? Thanks!

Sure. I’ve changed it to > 0

@nanahpang nanahpang merged commit 6112664 into grpc:master Jul 11, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lang/c++ release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants