My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 233: unnecessary "java.io.IOException: Connection reset by peer" in server log
26 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----


Sign in to add a comment
 
Reported by code-rev...@gtempaccount.com, Sep 24, 2009
Reported by Shawn Pearce <sop@google.com> on Thu Jun 25 07:57:00 PDT 2009
Source: JIRA GERRIT-234
Affected Version: 2.0.15

The following exception is relatively meaningless to us on the server side; it
would be nice if we could suppress it from the server logs.  If the client
went away in the middle of a connection, that's the client's concern, not ours.

2009-06-25 07:52:12,763::WARN : org.apache.sshd.server.session.ServerSession
- Exception caught
java.io.IOException: Connection reset by peer
	at sun.nio.ch.FileDispatcher.read0(Native Method)
	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
	at sun.nio.ch.IOUtil.read(IOUtil.java:206)
	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
	at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:
179)
	at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:
41)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor.read
(AbstractPollingIoProcessor.java:585)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor.process
(AbstractPollingIoProcessor.java:563)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor.process
(AbstractPollingIoProcessor.java:552)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400
(AbstractPollingIoProcessor.java:56)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run
(AbstractPollingIoProcessor.java:891)
	at org.apache.mina.util.NamePreservingRunnable.run
(NamePreservingRunnable.java:64)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:885)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:
907)
	at java.lang.Thread.run(Thread.java:619)
Sep 24, 2009
#1 sop+code@google.com
(No comment was entered for this change.)
Status: Accepted
Owner: ---
Jun 13, 2012
Project Member #2 choro...@wikimedia.org
 Issue 1130  has been merged into this issue.
Jul 7, 2015
#3 sven.sel...@sonymobile.com
It is possible in 2.11 to set the log level of com.google.gerrit.sshd.GerritServerSession to ERROR with logging ssh command to eliminate this from the logs.

https://gerrit-review.googlesource.com/Documentation/cmd-logging-set-level.html
Sign in to add a comment

Powered by Google Project Hosting