cbeust / kobalt-intellij-plugin

An IntelliJ plug-in for Kobalt
21 stars 7 forks source link

Occasionally, IntelliJ cannot connect to Kobalt with: 'Error:Software caused connection abort: recv failed' #77

Closed rhencke closed 7 years ago

rhencke commented 7 years ago

This is on:

When attempting to synchronize a Kobalt project, it will sometimes error out with the following message:

Error:Software caused connection abort: recv failed

For example, one set of steps that reproduces this is: 1) Open IntelliJ 2) Open an existing Kobalt project 3) Click the 'Refresh all Kobalt projects' button in the Kobalt tool window.

ethauvin commented 7 years ago
./kobaltw --server --force

before starting IDEA is a workaround until it is fixed.

cbeust commented 7 years ago

I see this Error:Software caused connection abort: recv failed very often indeed, and pretty much whenever I open a project.

dmitry-zhuravlev commented 7 years ago

Do you all see it on Windows? "Error:Software caused" can be simple ignored. I always have this on Windows and it seems like http://stackoverflow.com/questions/2126607/official-reasons-for-software-caused-connection-abort-socket-write-error

So probably I can hide this error message or someone can suggest how to close websocket gracefully without send this error back to client?

dittert commented 7 years ago

No, I'm seeing this on OS X as well.

dmitry-zhuravlev commented 7 years ago

@cbeust The mentioned problem can be fixed by remove explicit session.close() inside onWebSocketConnect callback: https://github.com/cbeust/kobalt/blob/23bbcd4d84f65ae5cfb8f06750442dd53273ed36/src/main/kotlin/com/beust/kobalt/app/remote/GetDependencyGraphHandler.kt#L121-L121

It seems that this close() invocation prevents websocket client inside IDEA plugin to disconnect gracefully.

cbeust commented 7 years ago

I'll remove it and get back to you.

cbeust commented 7 years ago

Done and deployed in 1.0.48.