Support grpc-js plugin servers
In order to support grpc-js gRPC servers, we need to slightly loosen
our checks on plugin readiness.  This change was already in the 2.x
branch, but porting back so that 1.x CLIs can also be compatible.
Fixes
@@ -215,7 +215,7 @@ func newPlugin(ctx *Context, pwd, bin, prefix string, args, env []string) (*plug
// The server is unavailable. This is the Linux bug. Wait a little and retry.
time.Sleep(time.Millisecond * 10)
continue // keep retrying
- case codes.Unimplemented, codes.ResourceExhausted:
+ default:
// Since we sent "" as the method above, this is the expected response. Ready to go.
break outer
}
