ST-DDT

Results 1351 comments of ST-DDT

Looks like a good idea to me. Note, you can (probably) use that library with this library as is. If kt doesn't cause any issues. You just have to exclude...

The keepalive is set here: https://github.com/yidongnan/grpc-spring-boot-starter/blob/aee1d1486973f06d1b7be3a030b3a2c309b671a4/grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/serverfactory/NettyGrpcServerFactory.java#L98-L107 Can you please check which of these properties causes this? If not, it might take some time for me to fix this. **Note:** You...

You tested that [GrpcReflectionServiceAutoConfiguration](https://github.com/yidongnan/grpc-spring-boot-starter/blob/master/grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/autoconfigure/GrpcReflectionServiceAutoConfiguration.java#L49) gets called first, but then it doesn't show up in [AnnotationGrpcServiceDiscoverer](https://github.com/yidongnan/grpc-spring-boot-starter/blob/master/grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/service/AnnotationGrpcServiceDiscoverer.java#L56)? Thats weird. Could you run this [test](https://github.com/yidongnan/grpc-spring-boot-starter/blob/master/grpc-server-spring-boot-autoconfigure/src/test/java/net/devh/boot/grpc/server/autoconfigure/GrpcReflectionServiceDefaultAutoConfigurationTest.java) with your version setup?

> is that because my project use spring boot `2.1.18` ? I dont know. Thats why I asked you to run that test with your version setup. I'm on vacation...

Thanks for bringing this to our attention. We will edit the Readme soon.

**Variant 1** - two ports same handler (both ports can connect to the same services, but they are separated by user/ip/port permissions): First you need a [`GrpcServerConfigurer`](https://www.javadoc.io/doc/net.devh/grpc-server-spring-boot-autoconfigure/latest/net/devh/boot/grpc/server/serverfactory/GrpcServerConfigurer.html) ([Docs](https://yidongnan.github.io/grpc-spring-boot-starter/en/server/configuration.html#grpcserverconfigurer)), there you...

> However, I can't get the actual port that the request comes in. You can via: [io.grpc.Grpc.TRANSPORT_ATTR_LOCAL_ADDR](https://github.com/grpc/grpc-java/blob/d4fa0ecc07495097453b0a2848765f076b9e714c/api/src/main/java/io/grpc/Grpc.java#L48-L49) If you are lucky, these attributes are still available in your authentication instance:...

FYI: I created a PR that grants the developer access to the `ServerCall` during authorization checks (e.g. the client address): https://github.com/yidongnan/grpc-spring-boot-starter/pull/742 This PR can be considered BREAKING if you use...

The enhanced security support (for multiple server ports) was added in #742.

[English translation](https://github-com.translate.goog/yidongnan/grpc-spring-boot-starter/issues/622?_x_tr_sl=zh-CN&_x_tr_tl=en) --------------- The grpc service is registered via the http service metadata. See also [GrpcMetadataNacosConfiguration](https://github.com/yidongnan/grpc-spring-boot-starter/blob/master/grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/autoconfigure/GrpcMetadataNacosConfiguration.java#L54) and [DiscoveryClientNameResolver](https://github.com/yidongnan/grpc-spring-boot-starter/blob/master/grpc-client-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/client/nameresolver/DiscoveryClientNameResolver.java#L161-L189) Unfortunately there is no way to generically register a service in spring-cloud's...