Commit 0da2a54c authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Added retry logic when an error occured while transmiting the packet. JM-256


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1243 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6ddc4325
......@@ -93,7 +93,7 @@ public class SocketConnection implements Connection {
}
}
catch (Exception e) {
Log.error("Closing no longer valid connection", e);
Log.warn("Closing no longer valid connection", e);
close();
}
return !isClosed();
......@@ -235,8 +235,11 @@ public class SocketConnection implements Connection {
xmlSerializer.flush();
}
catch (IOException e) {
Log.error(e);
Log.warn(e);
close();
// Retry sending the packet again. Most probably if the packet is a
// Message it will be stored offline
deliverer.deliver(packet);
}
}
// Invoke the interceptors after we have sent the packet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment