aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-02-02 00:01:22 +0300
committerGravatar Vitaly Takmazov2016-02-02 00:01:22 +0300
commit9bd81dc9e69ba58d8fedd4adfb7e80245019eb18 (patch)
treee78e2c75219ff1fe74844b3878ab6a7f69bdcc7e /src/main
parent26c09174eb64d6f67509236a8f47992b475b7c6b (diff)
prettify s2s out logs
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/juick/xmpp/s2s/ConnectionOut.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java b/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java
index c4334fed..59fdfb60 100644
--- a/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java
+++ b/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java
@@ -1,6 +1,8 @@
package com.juick.xmpp.s2s;
import com.juick.xmpp.utils.XmlUtils;
+
+import java.io.EOFException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
@@ -112,6 +114,10 @@ public class ConnectionOut extends Connection {
LOGGER.warning("STREAM TO " + to + " " + streamID + " FINISHED");
XMPPComponent.removeConnectionOut(ConnectionOut.this);
closeConnection();
+ } catch (EOFException eofex) {
+ LOGGER.info(String.format("STREAM %s %s CLOSED (dirty)", to, streamID));
+ XMPPComponent.removeConnectionOut(ConnectionOut.this);
+ closeConnection();
} catch (Exception e) {
LOGGER.log(Level.SEVERE, "s2s out exception", e);
XMPPComponent.removeConnectionOut(ConnectionOut.this);