MCPcopy Index your code
hub / github.com/coder/coder / Close

Method Close

vpn/pipe.go:58–69  ·  view source on GitHub ↗

Close implements io.Closer. Both the read and write pipes are closed.

()

Source from the content-addressed store, hash-verified

56
57// Close implements io.Closer. Both the read and write pipes are closed.
58func (b BidirectionalPipe) Close() error {
59 var err error
60 rErr := b.read.Close()
61 if rErr != nil {
62 err = multierror.Append(err, xerrors.Errorf("close pipe_read (fd=%v): %w", b.read.Fd(), rErr))
63 }
64 wErr := b.write.Close()
65 if err != nil {
66 err = multierror.Append(err, xerrors.Errorf("close pipe_write (fd=%v): %w", b.write.Fd(), wErr))
67 }
68 return err
69}

Callers 2

vpnDaemonRunMethod · 0.95
vpnDaemonRunMethod · 0.95

Calls 3

CloseMethod · 0.65
AppendMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected