mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
No error on SocketException (client closed connection)
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@202 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
0bea11cb12
commit
5212b594cf
@ -14,6 +14,7 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.Socket;
|
||||
import java.net.SocketTimeoutException;
|
||||
import java.net.SocketException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
@ -228,6 +229,9 @@ public class LdapConnection extends AbstractConnection {
|
||||
|
||||
handleRequest(new BerDecoder(inbuf, 0, offset));
|
||||
}
|
||||
|
||||
} catch (SocketException e) {
|
||||
DavGatewayTray.debug("Connection closed");
|
||||
} catch (SocketTimeoutException e) {
|
||||
DavGatewayTray.debug("Closing connection on timeout");
|
||||
} catch (IOException e) {
|
||||
|
@ -6,6 +6,7 @@ import davmail.tray.DavGatewayTray;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.Socket;
|
||||
import java.net.SocketException;
|
||||
import java.util.Date;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
@ -122,6 +123,9 @@ public class SmtpConnection extends AbstractConnection {
|
||||
|
||||
os.flush();
|
||||
}
|
||||
|
||||
} catch (SocketException e) {
|
||||
DavGatewayTray.debug("Connection closed");
|
||||
} catch (IOException e) {
|
||||
DavGatewayTray.error(e.getMessage());
|
||||
try {
|
||||
@ -137,6 +141,7 @@ public class SmtpConnection extends AbstractConnection {
|
||||
|
||||
/**
|
||||
* Create authenticated session with Exchange server
|
||||
*
|
||||
* @throws IOException on error
|
||||
*/
|
||||
protected void authenticate() throws IOException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user