Project

General

Profile

periodical keepalive() fails

Ivan Bazhenov
Added over 2 years ago

Hi!

i get the following error 3 minutes after jaxmpp.login()

авг 15, 2016 12:19:39 PM tigase.jaxmpp.j2se.connectors.socket.Worker run

WARNING: Exception in worker

java.net.SocketTimeoutException: Read timed out

at java.net.SocketInputStream.socketRead0(Native Method)

at java.net.SocketInputStream.read(SocketInputStream.java:152)

at java.net.SocketInputStream.read(SocketInputStream.java:122)

at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238)

at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)

at tigase.jaxmpp.j2se.connectors.socket.TextStreamReader.read(TextStreamReader.java:50)

at tigase.jaxmpp.j2se.connectors.socket.Worker.run(Worker.java:111)

As far as i understand it's a ping to the tigase server. I can't ignore it as soon as after it jaxmpp.isConnected() returns false and i need to reconnect..

Upd1:

found in one of previous discussions:

Just now I find the "jaxmpp.getConnectionConfiguration().setDisableTLS(true);" cause the Exception.

So, should i configure tls connection to fix that error?