> In any case, network server should certainly enable SO_KEEPALIVE on client 
> connections.

Here is a patch that does just that. ;)

Jan
Index: java/drda/org/apache/derby/impl/drda/ClientThread.java
===================================================================
--- java/drda/org/apache/derby/impl/drda/ClientThread.java      (revision 54252)
+++ java/drda/org/apache/derby/impl/drda/ClientThread.java      (working copy)
@@ -64,6 +64,10 @@
                                        
                                        if (timeSlice != 0)
                                                
clientSocket.setSoTimeout(timeSlice);
+                                       
+                                       // set SO_KEEPALIVE
+                                       clientSocket.setKeepAlive(true);
+                                               
                                } catch (PrivilegedActionException e) {
                                        Exception e1 = e.getException();
                                        if (e1 instanceof IOException){

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to