Incorporate dsymonds' comments.

Fix another bug: cancel the Context provided to an RPC server handler
as soon as that handler returns, so that goroutines started by that
handler can detect that the handler is done and exit. Without this
fix, goroutines started by a handler will keep running, unless the
handler itself arranges to cancel the context.
3 files changed
tree: 34abacf9599290682ac8d953f3b46ba12d148bdd
  1. benchmark/
  2. codes/
  3. credentials/
  4. Documentation/
  5. examples/
  6. grpclog/
  7. health/
  8. interop/
  9. metadata/
  10. naming/
  11. test/
  12. transport/
  13. .travis.yml
  14. call.go
  15. clientconn.go
  16. codegen.sh
  17. CONTRIBUTING.md
  18. doc.go
  19. LICENSE
  20. Makefile
  21. PATENTS
  22. README.md
  23. rpc_util.go
  24. rpc_util_test.go
  25. server.go
  26. stream.go
  27. 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 guide.

Installation

To install this package, you need to install Go 1.4 or above 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.4 or above.

Documentation

You can find more detailed documentation and examples in the examples directory.

Status

Beta release