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

failed to receive the preface from client -- triggered by tcp health check #875

Closed
imoverclocked opened this issue Sep 2, 2016 · 10 comments
Assignees

Comments

@imoverclocked
Copy link

I'm running a gRPC server in an environment that checks health via tcp open or tcp half-open. This triggers:

2016/09/02 17:58:25 transport: http2Server.HandleStreams failed to receive the preface from client: read tcp 1.1.1.1:31703->2.2.2.2:54388: read: connection reset by peer

which fills up logs over time. Any chance of squelching the message, even with an option?

https://github.com/grpc/grpc-go/blob/master/transport/http2_server.go#L231

Cheers.

@iamqizhao
Copy link
Contributor

we are working on improving grpc logging (this should only appear in debugging mode).

@enm10k
Copy link

enm10k commented Jan 17, 2017

I had the same issue.
And I want this to be fixed for our production use.

we are working on improving grpc logging (this should only appear in debugging mode).

Is there any work-in-progress branch as public?
If no one is working on this now, I'll do.

@MakMukhi
Copy link
Contributor

MakMukhi commented Jan 17, 2017 via email

@enm10k
Copy link

enm10k commented Jan 18, 2017

Thanks.
I'm waiting for his back.

@hsaliak
Copy link

hsaliak commented May 17, 2017

@MakMukhi @menghanl can you reference the PR here and close the issue if it's already resolved?

@CocoaWang
Copy link

hi , do you have any solutions for this problem ? for i have met the same error.

@menghanl
Copy link
Contributor

menghanl commented Jun 1, 2017

Log spamming will be alleviated with grpclog changes.

We have #922 for the API change.
I also have the change to use different log levels in gRPC ready, will send that out when the API change is merged.

@CocoaWang
Copy link

@menghanl i have resolved my problem . The reason is that i set the wrong server-hostname when running tls

@dyxushuai
Copy link

@imoverclocked
This error is still existing for me with version v1.7.0
Do you have any solutions for this problem?

@MakMukhi
Copy link
Contributor

@xuss Can you throw some more light on what exactly are you seeing?

  1. Is your log spammed by errors originating in transport? Perhaps, consider setting your log verbosity level to 1. grpclog

  2. Are you unable to connect because of a specific transport error? Please share more information, possible a reproduction.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants