summaryrefslogtreecommitdiffhomepage
path: root/pkg/p9/server.go
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2019-10-04 14:55:11 -0700
committergVisor bot <gvisor-bot@google.com>2019-10-04 14:56:53 -0700
commitb941e357615a7b0e04dbf6535cafacfbb4b7e276 (patch)
tree318b3d33da5ea71491b4a514b9f0296f93fe86b8 /pkg/p9/server.go
parent7ef1c44a7fe027d60c92b44515655a612d40d034 (diff)
Return EIO from p9 if flipcall.Endpoint.Connect() fails.
Also ensure that all flipcall transport errors not returned by p9 (converted to EIO by the client, or dropped on the floor by channel server goroutines) are logged. PiperOrigin-RevId: 272963663
Diffstat (limited to 'pkg/p9/server.go')
-rw-r--r--pkg/p9/server.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/p9/server.go b/pkg/p9/server.go
index 69c886a5d..e717e6161 100644
--- a/pkg/p9/server.go
+++ b/pkg/p9/server.go
@@ -452,7 +452,9 @@ func (cs *connState) initializeChannels() (err error) {
cs.channelWg.Add(1)
go func() { // S/R-SAFE: Server side.
defer cs.channelWg.Done()
- res.service(cs)
+ if err := res.service(cs); err != nil {
+ log.Warningf("p9.channel.service: %v", err)
+ }
}()
}