Skip to content

SocketException Connection reset #46

Description

@alekseysotnikov

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"
[

]%       

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions