avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgar...@apache.org
Subject svn commit: r1079678 - /avro/trunk/lang/java/ipc/src/main/java/org/apache/avro/ipc/SocketServer.java
Date Wed, 09 Mar 2011 06:39:17 GMT
Author: sgargan
Date: Wed Mar  9 06:39:16 2011
New Revision: 1079678

URL: http://svn.apache.org/viewvc?rev=1079678&view=rev
Log:
Added interrupt on close to main thread in SocketServer to avoid holding socket and port open

Modified:
    avro/trunk/lang/java/ipc/src/main/java/org/apache/avro/ipc/SocketServer.java

Modified: avro/trunk/lang/java/ipc/src/main/java/org/apache/avro/ipc/SocketServer.java
URL: http://svn.apache.org/viewvc/avro/trunk/lang/java/ipc/src/main/java/org/apache/avro/ipc/SocketServer.java?rev=1079678&r1=1079677&r2=1079678&view=diff
==============================================================================
--- avro/trunk/lang/java/ipc/src/main/java/org/apache/avro/ipc/SocketServer.java (original)
+++ avro/trunk/lang/java/ipc/src/main/java/org/apache/avro/ipc/SocketServer.java Wed Mar 
9 06:39:16 2011
@@ -83,6 +83,7 @@ public class SocketServer extends Thread
   }
 
   public void close() {
+    this.interrupt();
     group.interrupt();
   }
 



Mime
View raw message