Skip to content

Commit

Permalink
Merge pull request #6639 from hashicorp/return-after-forward
Browse files Browse the repository at this point in the history
return after request has been forwarded
  • Loading branch information
drewbailey authored Nov 8, 2019
2 parents 954d197 + a58f50a commit 43e3570
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nomad/client_agent_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ func (m *Agent) monitor(conn io.ReadWriteCloser) {
return
}

// Targeting a client so forward the request
// Targeting a node, forward request to node
if args.NodeID != "" {
m.forwardMonitor(conn, args, encoder, decoder)
// forwarded request has ended, return
return
}

// NodeID was empty, so monitor this current server
Expand Down

0 comments on commit 43e3570

Please sign in to comment.