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

SocketException Connection reset #46

Open
alekseysotnikov opened this issue Aug 31, 2021 · 0 comments
Open

SocketException Connection reset #46

alekseysotnikov opened this issue Aug 31, 2021 · 0 comments

Comments

@alekseysotnikov
Copy link

alekseysotnikov commented Aug 31, 2021

For some reason connecting takes a lot of time (20-40 minutes) and right after that it fails with the exception SocketException Connection reset.
Could someone advice on how to investigate/debug this issue?

lein repl :connect https://<host>/repl
Connecting to nREPL at https://<host>/repl
SocketException Connection reset
        java.net.SocketInputStream.read (SocketInputStream.java:186)
        java.net.SocketInputStream.read (SocketInputStream.java:140)
        sun.security.ssl.SSLSocketInputRecord.read (SSLSocketInputRecord.java:448)
        sun.security.ssl.SSLSocketInputRecord.decode (SSLSocketInputRecord.java:165)
        sun.security.ssl.SSLTransport.decode (SSLTransport.java:108)
        sun.security.ssl.SSLSocketImpl.decode (SSLSocketImpl.java:1152)
        sun.security.ssl.SSLSocketImpl.readHandshakeRecord (SSLSocketImpl.java:1063)
        sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:402)
        org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket (SSLConnectionSocketFactory.java:436)
        org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket (SSLConnectionSocketFactory.java:384)
        org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect (DefaultHttpClientConnectionOperator.java:142)
        org.apache.http.impl.conn.BasicHttpClientConnectionManager.connect (BasicHttpClientConnectionManager.java:313)
Bye for now!

If I curl the endpoint, it responds instantly

curl -X GET "https://<host>/repl" -H  "x-token: some_token_here"
[

]%       
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant