Skip to content

Commit

Permalink
dcap: do not log client disconnects
Browse files Browse the repository at this point in the history
if client does not send CLOSE and disconnects, then faimost
"EOF on input socket (fillBuffer)" is loggeed.

Acked-by: Paul Millar
Patch: http://rb.dcache.org/r/4554/
  • Loading branch information
kofemann committed Jun 13, 2012
1 parent 3b04b88 commit f6df217
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,8 @@ public void runIO(RepositoryChannel fileChannel,
_log.debug("Request Block : {}", requestBlock);

}catch(EOFException eofe){
_log.error("Dataconnection closed by peer : {}", eofe.toString());
_log.debug("Dataconnection closed by peer : {}", eofe.toString());
throw eofe;

}catch(BufferUnderflowException bue){
throw new
CacheException(43,"Protocol Violation (csl<4)");
Expand Down Expand Up @@ -756,7 +755,6 @@ public void runIO(RepositoryChannel fileChannel,
_log.error("Problem in command block : "+requestBlock, e);
ioException = e;
}catch(Exception e){
_log.warn("Problem in command block : "+requestBlock, e.toString());
ioException = e;
}finally{

Expand Down Expand Up @@ -804,7 +802,10 @@ public void runIO(RepositoryChannel fileChannel,
"Disk I/O Error " +
(ioException!=null?ioException.toString():"") );
}else{
if (ioException instanceof EOFException) throw ioException;
if (ioException != null && !(ioException instanceof EOFException)) {
_log.warn("Problem in command block : {} {}", requestBlock, ioException.toString());
throw ioException;
}
}


Expand Down

0 comments on commit f6df217

Please sign in to comment.