You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lior Shliechkorn <li...@yahoo.com> on 2003/01/15 22:37:43 UTC
IO Exception: Connection reset by peer: socket write error
Hi,
I'm running an app from a remote location (Chicago) with a database located in New York. I know this is not by any means a recommended practice, however, it's for testing purposes. My question is why this is occuring? The application works fine, but if I try to access it after a little time has passed I get that exception thrown.
What is the issue? How can I solve this?
Thank you very much,
Lior
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Re: IO Exception: Connection reset by peer: socket write error
Posted by Peter Harrison <pe...@asterisk.co.nz>.
On Thu, 16 Jan 2003 10:37, Lior Shliechkorn wrote:
> Hi,
>
> I'm running an app from a remote location (Chicago) with a database located
> in New York. I know this is not by any means a recommended practice,
> however, it's for testing purposes. My question is why this is occuring?
> The application works fine, but if I try to access it after a little time
> has passed I get that exception thrown.
A wild guess might be that the connection is being reset by the DB after a
peiod of non-use, which throws an IO Exception the next time the DB is
accessed by the web app. Usually a SQL exception would be thrown however, so
don't treat this suggestion as gospel.
I know at least two databases which have this behaviour (Postgres, and some
versions of Interbase).
Regards,
Peter
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>