]> Cypherpunks repositories - gostls13.git/commit
rpc: implement ServeRequest to synchronously serve a single request.
authorSugu Sougoumarane <ssougou@gmail.com>
Mon, 15 Aug 2011 22:06:22 +0000 (08:06 +1000)
committerRob Pike <r@golang.org>
Mon, 15 Aug 2011 22:06:22 +0000 (08:06 +1000)
commit9f677f91d19321bb663f337f015b253794c338a8
treed861163d91b313da8634ba3defd27b7fa35c973c
parentde1f856d660e38c42c82f382209085bb65980fa9
rpc: implement ServeRequest to synchronously serve a single request.

This is useful for applications that want to micromanage the rpc service.
Moved part of ServeCodec into a new readRequest function.
Renamed existing readRequest to readRequestHeader, and reordered
its parameters to align with the new readRequest and service.call.

R=golang-dev, r, rsc, sougou
CC=golang-dev, msolomon
https://golang.org/cl/4889043
src/pkg/rpc/server.go
src/pkg/rpc/server_test.go