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

Warning: unknown channel option SO_KEEPALIVE #624

Open
lorien opened this issue Jan 11, 2022 · 1 comment
Open

Warning: unknown channel option SO_KEEPALIVE #624

lorien opened this issue Jan 11, 2022 · 1 comment
Labels
bug Something does not work as expected feedback required Information are missing or feedback for suggestions is requested
Milestone

Comments

@lorien
Copy link

lorien commented Jan 11, 2022

The context

I want to use grpc server inside spring boot server. I want grpc server listens on unix domain socket.

The question

I have upgraded to recent release of grpc-server-spring-boot-starter and added this config line to properties file:
grpc.server.address=unix:/path/to/backend-grpc.sock
It works OK but I keep seeing these lines in log file:

22:09:03.656 [epollEventLoopGroup-2-1] WARN i.g.n.s.i.n.b.ServerBootstrap - Unknown channel option 'SO_KEEPALIVE' for channel '[id: 0xdf583dc3]'

Could you please suggest how can I fix that issue? I do not want these lines appear in log file.

The application's environment

Spring (boot): 2.5.7
grpc-java: 1.35.1
grpc-server-spring-boot-starter: 2.13.0.RELEASE
java: 17.0.1, 64bit

@lorien lorien added the bug Something does not work as expected label Jan 11, 2022
@ST-DDT
Copy link
Collaborator

ST-DDT commented Jan 11, 2022

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 should probably update to a newer version of grpc/protobuf as a security advisory has been published for protobuf a few days ago. (The spring-boot update might be important as well, if you are using log4j2)
See also: https://github.com/yidongnan/grpc-spring-boot-starter/releases/tag/v2.13.1.RELEASE

@ST-DDT ST-DDT added the feedback required Information are missing or feedback for suggestions is requested label Jan 11, 2022
@ST-DDT ST-DDT added this to the 2.14.0 milestone Jan 11, 2022
@ST-DDT ST-DDT mentioned this issue Oct 7, 2022
@ST-DDT ST-DDT modified the milestones: 2.14.0, 2.15.0 Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something does not work as expected feedback required Information are missing or feedback for suggestions is requested
Projects
None yet
Development

No branches or pull requests

2 participants