when http upgrade fail, the connection can not close success

Author: kevinhehcCreated May 20, 2025Updated May 20, 2025

Describe the bug

when http upgrade fail, the connection can not close success

To Reproduce Steps to reproduce the behavior:

  1. when on upgrade fail and throw an exception,the connection can not close success

Expected behavior when http upgrade fail, the connection will close

Debug log

Image

Image

Environment(please complete the following information):

  • Version used: 1.5.4
  • Java version: 17
  • Operating System and version: mac or linux will happen
  • Endpoint Name and version:
  • Link to your project: null

Source: TooTallNate/Java-WebSocket