Skip to content

Make initial connect retry backoff configurable#8235

Merged
nicolasnoble merged 7 commits intogrpc:masterfrom
ctiller:adjustable_window
Sep 29, 2016
Merged

Make initial connect retry backoff configurable#8235
nicolasnoble merged 7 commits intogrpc:masterfrom
ctiller:adjustable_window

Conversation

@ctiller
Copy link
Copy Markdown
Member

@ctiller ctiller commented Sep 28, 2016

No description provided.

} else if (0 == strcmp(c->args->args[i].key,
GRPC_ARG_INITIAL_RECONNECT_BACKOFF_MS)) {
fixed_reconnect_backoff = false;
max_backoff_ms = grpc_channel_arg_get_integer(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/max_backoff_ms/initial_backoff_ms

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

Muxi Yan and others added 2 commits September 28, 2016 17:19
@ctiller
Copy link
Copy Markdown
Member Author

ctiller commented Sep 29, 2016

@makdharma @jcanizales - PTAL at the ObjC changes

Copy link
Copy Markdown
Contributor

@jcanizales jcanizales left a comment

Choose a reason for hiding this comment

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

I would add a comment that this is required for correct behavior on slow networks. Otherwise people of the future with their super beefy Mac Jenkins slaves could think it's fine to remove.

args[@GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH] = _responseSizeLimitOverride;
}
NSNumber *initialBackoff = [NSNumber numberWithInt:10000];
args[@GRPC_ARG_INITIAL_RECONNECT_BACKOFF_MS] = initialBackoff;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think = @10000; will give you the NSNumber.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Interesting feature :) I'll clean up

@ctiller
Copy link
Copy Markdown
Member Author

ctiller commented Sep 29, 2016

@muxi - hoping you can respond to @jcanizales requests

@muxi muxi mentioned this pull request Sep 29, 2016
@muxi
Copy link
Copy Markdown
Contributor

muxi commented Sep 29, 2016

Please merge the other PR referenced above

@ctiller
Copy link
Copy Markdown
Member Author

ctiller commented Sep 29, 2016

Changes merged - @jcanizales PTAL

@nicolasnoble
Copy link
Copy Markdown
Contributor

Regenerate projects plz.

@nicolasnoble nicolasnoble merged commit be43240 into grpc:master Sep 29, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 26, 2019
@lock lock bot unassigned dgquintas Jan 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants