Comments (2)
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.
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)
- libstrophe doesn't filter forbidden sequences HOT 3
- New release request HOT 2
- /usr/bin/x86_64-w64-mingw32-ld: cannot find -lresolv HOT 3
- Undefined symbol: _xmpp_vsnprintf _xmpp_snprintf when compiling for arm64 HOT 7
- Add stdcall call method macro HOT 2
- Tests fail without static libraries HOT 4
- Double free in gnutls library HOT 6
- `undefined reference` errors during example compilation: what am I missing? HOT 9
- Is it possible to build libstrophe for iOS? HOT 2
- cannot connect when vpn active HOT 2
- memory leak at xmpp_alloc HOT 2
- library API's exported but missing from header HOT 2
- SO versioning not done correctly HOT 3
- How to use in visual studio? HOT 7
- Sending a message to a user HOT 21
- Feature Request - expose _escape_xml to public (via fmt) HOT 1
- XEP 0178 PEM password prompt despite no password on the p12 encrypted certificate
- Continuous Bosh Request HOT 2
- Resending of old messages on reconnect HOT 7
- Not working with multiple FQDNs in DNS response HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libstrophe.