From fe4f19e23db5fbdcf47119267061ee8f67bc269b Mon Sep 17 00:00:00 2001 From: Felix Schumacher Date: Wed, 6 Aug 2008 16:10:20 +0200 Subject: [PATCH] jcifs-0.7.17 from tgz Tue Dec 23 03:43:15 EST 2003 jcifs-0.7.17 released JCIFS will now suppress the harmess "exception reading from socket input" message being written to the log. Specifically when using the NTLM HTTP Filter under load jCIFS would periodically write exceptions to the log like the following: Dec 19 10:45:14.474 - exception reading from socket input: IKOO635<1B>/172.81.13.154 java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) ... This was occuring because the domain controller is periodically closing the socket to the server. This is harmless. JCIFS will automatically reconnect and proceed as usual. --- CHANGES.txt | 19 ++++++++++++++++++- README.txt | 6 ++++++ build.xml | 14 +++++++------- src/jcifs/smb/SmbTransport.java | 4 +++- 4 files changed, 34 insertions(+), 9 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 2d5e568..5d419e8 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,21 @@ -Tue Dec 9 18:13:25 EST 2003 +Tue Dec 23 03:43:15 EST 2003 +jcifs-0.7.17 released + +JCIFS will now suppress the harmess "exception reading from socket input" +message being written to the log. Specifically when using the NTLM HTTP +Filter under load jCIFS would periodically write exceptions to the log like +the following: + +Dec 19 10:45:14.474 - exception reading from socket input: IKOO635<1B>/172.81.13.154 +java.net.SocketException: Connection reset + at java.net.SocketInputStream.read(SocketInputStream.java:168) + ... + +This was occuring because the domain controller is periodically closing the +socket to the server. This is harmless. JCIFS will automatically reconnect +and proceed as usual. + +Dec 9 18:13:25 EST 2003 jcifs-0.7.16 released If NT SMBs are not negotiated jCIFS will now use SMB_COM_WRITE as opposed diff --git a/README.txt b/README.txt index 2750947..cd8f416 100644 --- a/README.txt +++ b/README.txt @@ -1,3 +1,9 @@ +Tue Dec 23 03:43:15 EST 2003 +jcifs-0.7.17 released + +JCIFS will now suppress the harmess "exception reading from socket input" +message being written to the log. + Tue Dec 9 18:13:25 EST 2003 jcifs-0.7.16 released diff --git a/build.xml b/build.xml index 4846284..508df84 100644 --- a/build.xml +++ b/build.xml @@ -66,24 +66,24 @@ - + - + - - - + + + - + - + diff --git a/src/jcifs/smb/SmbTransport.java b/src/jcifs/smb/SmbTransport.java index 8f5ce3f..d66a059 100644 --- a/src/jcifs/smb/SmbTransport.java +++ b/src/jcifs/smb/SmbTransport.java @@ -444,7 +444,9 @@ synchronized( rcv_buf ) { synchronized( this ) { tryClose( true ); } - Log.printStackTrace( "exception reading from socket input: " + address, ioe ); + if( ioe.getMessage().startsWith( "Connection reset" ) == false ) { + Log.printStackTrace( "exception reading from socket input: " + address, ioe ); + } } } } -- 2.11.0