From: adam Date: Fri, 10 Sep 2004 22:05:29 +0000 (+0000) Subject: fixed a bug that left sockets in the CLOSE_WAIT state X-Git-Url: http://git.megacz.com/?p=org.ibex.io.git;a=commitdiff_plain;h=f6a081b5e942c84ac5c6e083d007b3c64dac7ff6 fixed a bug that left sockets in the CLOSE_WAIT state darcs-hash:20040910220529-5007d-f04b0156f27c320a1a22bb897136cb745fb7cdb5.gz --- diff --git a/src/org/ibex/io/Connection.java b/src/org/ibex/io/Connection.java index 4233315..bb7907b 100644 --- a/src/org/ibex/io/Connection.java +++ b/src/org/ibex/io/Connection.java @@ -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(); }