websocket: avoid panic from invalid websocket requests

  When a client sends invalid websocket reuqests, the WaitGroup counter
  (httpReq) can be nagative leading to panic.
  Although go http.Server gracefully shutdowns the server from a panic,
  it would be nice to avoid it.

fix #611

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