Skip to content

Commit

Permalink
stablize ServerBuilder.handshakeTimeout (grpc#10499)
Browse files Browse the repository at this point in the history
  • Loading branch information
YifeiZhuang authored and larry-safran committed Aug 29, 2023
1 parent de36cfe commit fd3a7c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/src/main/java/io/grpc/ServerBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,13 @@ public T useTransportSecurity(InputStream certChain, InputStream privateKey) {

/**
* Sets the permitted time for new connections to complete negotiation handshakes before being
* killed.
* killed. The default value is 2 minutes.
*
* @return this
* @throws IllegalArgumentException if timeout is negative
* @throws UnsupportedOperationException if unsupported
* @since 1.8.0
*/
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/3706")
public T handshakeTimeout(long timeout, TimeUnit unit) {
throw new UnsupportedOperationException();
}
Expand Down

0 comments on commit fd3a7c1

Please sign in to comment.