mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Bugfix/grpc consume eof (#912)
* GRPC streams end with an EOF The client should ensure that the final packet is followed by a GRPC EOF. This has the benefit of permitting the client code to clean up resources. * Don't require an entire HTTP request in RunnerCall TryExec needs a handle on an incoming ReadCloser containing the body of a request; however, everything else will already have been extracted from the HTTP request in the case of lbAgent use. (The point of this change is to simplify the interface for other uses.) * Return error from GRPC layer explicitly As per review
This commit is contained in:
@@ -285,8 +285,8 @@ func (c *call) SlotDeadline() time.Time {
|
||||
return c.slotDeadline
|
||||
}
|
||||
|
||||
func (c *call) Request() *http.Request {
|
||||
return c.req
|
||||
func (c *call) RequestBody() io.ReadCloser {
|
||||
return c.req.Body
|
||||
}
|
||||
|
||||
func (c *call) ResponseWriter() http.ResponseWriter {
|
||||
|
||||
Reference in New Issue
Block a user