Automatic WriteStatus for RecvMsg/SendMsg error on server side (#1409)

automatically WriteStatus if there's any error when RecvMsg/SendMsg on server side.
5 files changed
tree: bc1a0e41a558c2cffbbfb4a7fe99b3d8feea0951
  1. .github/
  2. benchmark/
  3. codes/
  4. connectivity/
  5. credentials/
  6. Documentation/
  7. examples/
  8. grpclb/
  9. grpclog/
  10. health/
  11. internal/
  12. interop/
  13. keepalive/
  14. metadata/
  15. naming/
  16. peer/
  17. reflection/
  18. stats/
  19. status/
  20. stress/
  21. tap/
  22. test/
  23. testdata/
  24. transport/
  25. .travis.yml
  26. AUTHORS
  27. backoff.go
  28. backoff_test.go
  29. balancer.go
  30. balancer_test.go
  31. call.go
  32. call_test.go
  33. clientconn.go
  34. clientconn_test.go
  35. codec.go
  36. codec_benchmark_test.go
  37. codec_test.go
  38. codegen.sh
  39. CONTRIBUTING.md
  40. coverage.sh
  41. doc.go
  42. go16.go
  43. go17.go
  44. grpclb.go
  45. interceptor.go
  46. LICENSE
  47. Makefile
  48. proxy.go
  49. proxy_test.go
  50. README.md
  51. rpc_util.go
  52. rpc_util_test.go
  53. server.go
  54. server_test.go
  55. stream.go
  56. trace.go
README.md

gRPC-Go

Build Status GoDoc

The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. For more information see the gRPC Quick Start: Go guide.

Installation

To install this package, you need to install Go and setup your Go workspace on your computer. The simplest way to install the library is to run:

$ go get google.golang.org/grpc

Prerequisites

This requires Go 1.6 or later.

Constraints

The grpc package should only depend on standard Go packages and a small number of exceptions. If your contribution introduces new dependencies which are NOT in the list, you need a discussion with gRPC-Go authors and consultants.

Documentation

See API documentation for package and API descriptions and find examples in the examples directory.

Performance

See the current benchmarks for some of the languages supported in this dashboard.

Status

General Availability Google Cloud Platform Launch Stages.

FAQ

Compiling error, undefined: grpc.SupportPackageIsVersion

Please update proto package, gRPC package and rebuild the proto files:

  • go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
  • go get -u google.golang.org/grpc
  • protoc --go_out=plugins=grpc:. *.proto