profiles/internal/rpc: more information when server hangs waiting on listeners

The most common reason why prod servers fail to shutdown cleanly is that
server.Stop() hangs. This cl makes the following changes to improve our chances
of diagnosing when this happens:

- reduce the timeout after which we print that the server is stuck waiting on
  listeners from 5 mins to 5 secs. 5 minutes is a really long time, and we
  rarely wait that long. It would be good to signal that we're stuck as soon as
  it's likely that we are.

- to mitigate the false positive rate for the above change, print out something
  if the listener wait does in fact complete

- add information about which server is actually stuck (in particular, the type
  of the dispatcher is useful to distinguish servers in a multi-server daemon
  like the mounttable (not to mention that the app cycle manager server is part
  of any server run by device manager))

- remove some unused endpoints field that I found by chance.

Change-Id: I14539c057b9f52a6b9afbc3a18cc0fb455bbbfa5
1 file changed
tree: 455d38cbb0165ab31106ad4a9084d4c48cd25bcd
  1. cmd/
  2. envvar/
  3. examples/
  4. internal/
  5. lib/
  6. profiles/
  7. services/
  8. test/
  9. .gitignore
  10. AUTHORS
  11. CONTRIBUTORS
  12. LICENSE
  13. PATENTS
  14. README.md
  15. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.