Coder Social home page Coder Social logo

TLS error, 6 about libstrophe HOT 2 CLOSED

strophe avatar strophe commented on July 28, 2024
TLS error, 6

from libstrophe.

Comments (2)

pasis avatar pasis commented on July 28, 2024

Here is description of the error code:

SSL_ERROR_SSL

    A failure in the SSL library occurred, usually a protocol error.
The OpenSSL error queue contains more information on the error.

I think this is your post on stackoverflow: http://stackoverflow.com/questions/30772738/libstrophe-tls-unrecoverable-error-6

In order to investigate your problem:

  • Does this error occur with all servers or only certain ones?
  • Does it occur with a single connection and single thread?
  • Did you take into account that libstrophe is not thread-safe?
  • In case you have published your code somewhere, provide the link please.

You asked if you could handle the error. Libstrophe calls your callback on disconnect:

    conn->conn_handler(conn, XMPP_CONN_DISCONNECT, conn->error,
                       conn->stream_error, conn->userdata);

conn->error contains the tls error, but tls error codes are specific for tls implementation.

from libstrophe.

pasis avatar pasis commented on July 28, 2024

My bad, I posted wrong error description. Error 6 for openssl is:

SSL_ERROR_ZERO_RETURN

    The TLS/SSL connection has been closed. If the protocol version is
    SSL 3.0 or TLS 1.0, this result code is returned only if a closure alert
    has occurred in the protocol, i.e. if the connection has been closed
    cleanly. Note that in this case SSL_ERROR_ZERO_RETURN does
    not necessarily indicate that the underlying transport has been closed.

Just for reference. There is an example how to retrieve information from the openssl error queue: profanity-im/profanity#770

Close due to inactivity.

from libstrophe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.