You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by "Pelton, Brian" <bp...@jgboswell.com> on 2006/10/24 17:05:58 UTC

RE: Error: `connection reset by peer`

That's my thought too.  I tried looking at the Java code to see what
James was trying to do when it threw the exception, but I couldn't
figure it out.

I thought I would ask to see if someone else agreed that it was
harmless.

Thanks,
Brian

 

-----Original Message-----
From: Stefano Bagnara [mailto:apache@bago.org] 
Sent: Monday, October 23, 2006 4:40 PM
To: James Users List
Subject: Re: Error: `connection reset by peer`

I guess your mail client disconnect from the server without issueing the
QUIT command. SO James log a disconnection exception because this should
not be done.

It should be nothing harmful.

Stefano

Pelton, Brian wrote:
> When sending an email to James using the Microsoft.NET framework, an 
> exception is reported in the SmtpServer log.
> 
> Server environment is James 2.2.0 on Windows XP running Java 1.3.1.  
> Client environment is the Microsoft.NET 2.0 framework.
> 
> The exceptions is thrown after the email is queued for delivery.  And 
> the email is in fact delivered to its intended recipient.
> 
> 
> --Brian
> 
> 
> --smtpserver log--
> 
> 
> 23/10/06 12:35:39 DEBUG smtpserver: Calling disposeWatchdog() default 
> Worker #6
> 23/10/06 12:35:39 DEBUG smtpserver: Returning SMTPHandler to pool.
> 23/10/06 12:35:39 DEBUG smtpserver: Watchdog default Worker #6 is 
> exiting run().
> 23/10/06 12:35:39 DEBUG smtpserver: Returning a 
> org.apache.james.smtpserver.SMTPHandler to the pool
> 23/10/06 12:47:14 DEBUG smtpserver: Retrieving a 
> org.apache.james.smtpserver.SMTPHandler from the pool
> 23/10/06 12:47:14 DEBUG smtpserver: Getting SMTPHandler from pool.
> 23/10/06 12:47:14 INFO  smtpserver: Connection from PELTON-XP-2
> (172.20.3.141)
> 23/10/06 12:47:14 DEBUG smtpserver: Sent: 220 pelton-xp-3 SMTP Server 
> (JAMES SMTP Server 2.2.0) ready Mon, 23 Oct 2006 12:47:14 -0700 (PDT)
> 23/10/06 12:47:14 DEBUG smtpserver: Calling start()
> 23/10/06 12:47:14 DEBUG smtpserver: Command received: EHLO pelton-xp-2
> 23/10/06 12:47:14 DEBUG smtpserver: Sent: 250 pelton-xp-3 Hello
> pelton-xp-2 (PELTON-XP-2 [172.20.3.141])
> 23/10/06 12:47:14 DEBUG smtpserver: Calling reset() for inactive 
> watchdog
> 23/10/06 12:47:14 DEBUG smtpserver: Command received: MAIL 
> FROM:<bp...@jgboswell.com>
> 23/10/06 12:47:14 DEBUG smtpserver: Sent: 250 Sender 
> <bp...@jgboswell.com> OK
> 23/10/06 12:47:14 DEBUG smtpserver: Calling reset() for inactive 
> watchdog
> 23/10/06 12:47:14 DEBUG smtpserver: Watchdog default Worker #8 has 
> time to sleep 360000
> 23/10/06 12:47:14 DEBUG smtpserver: Command received: RCPT 
> TO:<bp...@jgboswell.com>
> 23/10/06 12:47:14 DEBUG smtpserver: Sent: 250 Recipient 
> <bp...@jgboswell.com> OK
> 23/10/06 12:47:14 DEBUG smtpserver: Calling reset() default Worker #8
> 23/10/06 12:47:14 DEBUG smtpserver: Command received: DATA
> 23/10/06 12:47:14 DEBUG smtpserver: Sent: 354 Ok Send data ending with

> <CRLF>.<CRLF>
> 23/10/06 12:47:14 INFO  smtpserver: Successfully spooled mail
> Mail1161632834436-1 from bpelton@jgboswell.com for 
> [bpelton@jgboswell.com]
> 23/10/06 12:47:14 DEBUG smtpserver: Sent: 250 Message received
> 23/10/06 12:47:14 DEBUG smtpserver: Calling reset() default Worker #8
> 23/10/06 12:47:14 ERROR smtpserver: Socket to PELTON-XP-2 
> (172.20.3.141) closed remotely.
> java.net.SocketException: Connection reset by peer: JVM_recv in socket

> input stream read
> 	at java.net.SocketInputStream.socketRead(Native Method)
> 	at java.net.SocketInputStream.read(Unknown Source)
> 	at java.io.BufferedInputStream.read1(Unknown Source)
> 	at java.io.BufferedInputStream.read(Unknown Source)
> 	at java.io.FilterInputStream.read(Unknown Source)
> 	at java.io.InputStreamReader.fill(Unknown Source)
> 	at java.io.InputStreamReader.read(Unknown Source)
> 	at java.io.BufferedReader.fill(Unknown Source)
> 	at java.io.BufferedReader.read(Unknown Source)
> 	at
> org.apache.james.util.CRLFTerminatedReader.readLine(CRLFTerminatedRead
> er
> .java:98)
> 	at
> org.apache.james.smtpserver.SMTPHandler.readCommandLine(SMTPHandler.ja
> va
> :505)
> 	at
> org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.j
> av
> a:358)
> 	at
> org.apache.james.util.connection.ServerConnection$ClientConnectionRunn
> er
> .run(ServerConnection.java:417)
> 	at
> org.apache.james.util.thread.ExecutableRunnable.execute(ExecutableRunn
> ab
> le.java:55)
> 	at
> org.apache.james.util.thread.WorkerThread.run(WorkerThread.java:90)
> 23/10/06 12:47:14 DEBUG smtpserver: Calling disposeWatchdog() default 
> Worker #8
> 23/10/06 12:47:14 DEBUG smtpserver: Watchdog default Worker #8 is 
> exiting run().
> 23/10/06 12:47:14 DEBUG smtpserver: Returning SMTPHandler to pool.
> 23/10/06 12:47:14 DEBUG smtpserver: Returning a 
> org.apache.james.smtpserver.SMTPHandler to the pool
> 
> --end of log file--



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Error: `connection reset by peer`

Posted by Danny Angus <da...@gmail.com>.
On 10/24/06, Pelton, Brian <bp...@jgboswell.com> wrote:
> I thought I would ask to see if someone else agreed that it was
> harmless.

Its only harmless if you didn't write the client ;-) If you did then
*it* has a defect...

d.

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org