Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger failed to attach: handshake failed - connection prematurally closed #152

Open
olkornii opened this issue Nov 1, 2023 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@olkornii
Copy link
Collaborator

olkornii commented Nov 1, 2023

[kind/bug]

What versions of software are you using?

  • Operating System: Fedora 38
  • IntelliJ version: 2023.2.4(Community Edition)
  • Intellij-rsp extension version: 0.7.0.109

What did you run exactly?

Run WildFly30 with Debug.

Actual behavior

"Debugger failed to attach: handshake failed - connection prematurally closed" red text in output.

It seems to have no effect. Attempt to pause server in Debug tab -> open localhost:8080 -> loading... -> unpause server in Debug tab -> loaded.

Expected behavior

Any logs, error output, etc?

@robstryker
Copy link
Collaborator

In previous versions I would see it occasionally attempt to connect and get rejected via a failed handshake multiple times before finally successfully connecting.

I am not able to reproduce the issue right now, but, I have seen it before. After analyzing our own code, though, I can verify that we do poll on the debug port to see when it's ready before we go ahead and connect that debugger. We don't want to attempt to connect the debugger before the server is ready for it.

Either way, it appears to be our fault (polling and disconnecting the debug port), but the output is harmless and does not interfere with functioning of the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants