services/agent/internal/server: check for socket file path length
test/modules/shell: shorten the path to the dir holding agent sockets

A long socket path is rejected when trying to listen. The error is
murky, and it's not immediately clear to the client what's wrong. This
change adds an explicit check in the agent to ensure the socket path is
of an acceptable length, and return an informative error if not.

One of the places where the socket path occasionally ends up being too
long is in integration tests. This change shaves off ~20 characters to
help keep it short.

Change-Id: I60c25c9a14ad0f8c7e81c5f5a5abbc090ab7f7e2
5 files changed
tree: ed261459ee326a297fa4ad6754b4dd918d5cb597
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. 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.