fixed a bug that left sockets in the CLOSE_WAIT state
authoradam <adam@megacz.com>
Fri, 10 Sep 2004 22:05:29 +0000 (22:05 +0000)
committeradam <adam@megacz.com>
Fri, 10 Sep 2004 22:05:29 +0000 (22:05 +0000)
darcs-hash:20040910220529-5007d-f04b0156f27c320a1a22bb897136cb745fb7cdb5.gz

src/org/ibex/io/Connection.java

index 4233315..bb7907b 100644 (file)
@@ -10,7 +10,6 @@ public class Connection extends Stream {
     private final Socket s;
     public final String vhost;
     public Connection(Socket s, String vhost) { super(s); this.vhost = vhost; this.s = s; }
-    public void close()                       { try{s.close();}catch(Exception e){throw new StreamException(e);} super.close(); }
     public int getLocalPort()                 { return s.getLocalPort(); }
     public int getRemotePort()                { return s.getPort(); }
     public InetAddress getRemoteAddress()     { return ((InetSocketAddress)s.getRemoteSocketAddress()).getAddress(); }