You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2007/02/20 02:45:00 UTC
svn commit: r509408 -
/webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientThread.java
Author: nadiramra
Date: Mon Feb 19 17:44:59 2007
New Revision: 509408
URL: http://svn.apache.org/viewvc?view=rev&rev=509408
Log:
No reason to throw exception if client closes connection.
Modified:
webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientThread.java
Modified: webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientThread.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientThread.java?view=diff&rev=509408&r1=509407&r2=509408
==============================================================================
--- webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientThread.java (original)
+++ webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientThread.java Mon Feb 19 17:44:59 2007
@@ -216,11 +216,13 @@
}
}
catch (SocketException socketException)
- {
+ {
continueToRun=false;
if (!serverClosedSocket)
{
- if (socketException.getMessage( )=="Connection reset")
+ String exceptionString = socketException.getMessage().toLowerCase();
+ if (exceptionString.indexOf("connection") != -1
+ && exceptionString.indexOf("reset") != -1)
{
// tihs appears to happen when the client has stopped
// sending us data and we should close down gracefully
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org