db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r699515 - /db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/ClientThread.java
Date Fri, 26 Sep 2008 21:56:24 GMT
Author: kmarsden
Date: Fri Sep 26 14:56:24 2008
New Revision: 699515

URL: http://svn.apache.org/viewvc?rev=699515&view=rev
Log:
DERBY-3869 intermittent hang pinging server on Linux

port from trunk revision 698696


Modified:
    db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/ClientThread.java

Modified: db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/ClientThread.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/ClientThread.java?rev=699515&r1=699514&r2=699515&view=diff
==============================================================================
--- db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/ClientThread.java (original)
+++ db/derby/code/branches/10.3/java/drda/org/apache/derby/impl/drda/ClientThread.java Fri
Sep 26 14:56:24 2008
@@ -68,7 +68,14 @@
                                      }
                                  }
                                  );
-
+                        // Server may have been shut down.  If so, close this
+                        // client socket and break out of the loop.
+                        // DERBY-3869
+                        if (parent.getShutdown()) {
+                            clientSocket.close();
+                            return;
+                        }
+                            
                         clientSocket.setKeepAlive(parent.getKeepAlive());
                         
                         // Set time out: Stops DDMReader.fill() from



Mime
View raw message