Skip to content

Reverb error handling in application level #338

@ShashankInsnapsys

Description

@ShashankInsnapsys

Reverb Version

1.5

Laravel Version

11

PHP Version

8

Description

I'm trying to handle the following error at the application level:

Connection from tcp://127.0.0.1:40278 failed during TLS handshake: Unable to set private key file `'

Initially, I tried overriding the Server class, but this doesn't seem like a stable or future-proof solution, especially with potential updates to Reverb. Is there a recommended or reliable way to catch and handle TLS/SSL handshake errors within the application itself, without modifying the core server logic?

Steps To Reproduce

  • Install Reverb in your application.
  • Intentionally trigger an SSL handshake error (e.g., by omitting the private key file path).
  • Given this setup, how can we catch or handle such SSL/TLS handshake errors at the application level? I want to log these errors separately, outside of the default logging mechanism.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions