Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple server timeout #619

Merged
merged 1 commit into from
Jul 15, 2015
Merged

Conversation

carl-mastrangelo
Copy link
Contributor

@ejona86: This depends slightly on #576 and addresses #58

@@ -63,7 +63,7 @@ ClientStream newStream(MethodDescriptor<?, ?> method,
ClientStreamListener listener);

/**
* Starts transport. Implementations must not call {@code listener} until after {@code start()}
* Starts transport. Implementations must not call {@code listener} until after {@link #start}
Copy link
Member

Choose a reason for hiding this comment

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

Using @code is fine here, since the link doesn't add much value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it does add a little value, in case the method name ever changes. Also, cross references look at the @link annotation (such as in CS and IDEs).

Copy link
Member

Choose a reason for hiding this comment

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

Cross-references doesn't make sense here though, since it is referring to itself.

I do think it was a conscious decision to use code instead of link. The fact it is code also reduces the noise of the JavaDoc. But whatever.

@ejona86
Copy link
Member

ejona86 commented Jul 15, 2015

@carl-mastrangelo LGTM. Two small comments. We'll need to reassign #58 after this goes in for implementing cancel()

Reintroduce throws

Add timeoutExecutor shutdown

Use a default future

Move timeout cancellation

Cancel the timeout in error cases
@carl-mastrangelo carl-mastrangelo merged commit 0003e44 into grpc:master Jul 15, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants