Skip to content

Commit

Permalink
Added an example of the case where listen call fails
Browse files Browse the repository at this point in the history
  • Loading branch information
annafang-google committed Sep 19, 2023
1 parent 2c7bb3f commit 31e096c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ func NewClient(ctx context.Context, d cloudsql.Dialer, l cloudsql.Logger, conf *
switch err.(type) {
// this is not the inactive instance case. Fail the proxy
// so that the user could fix the proxy command error.
// for example: two instances with the same port will fail
// in the listen call.
case *net.OpError:
for _, m := range mnts {
mErr := m.Close()
Expand Down

0 comments on commit 31e096c

Please sign in to comment.