[multiple changes]
2005-12-27 Tom Tromey <tromey@redhat.com> * gnu/java/nio/SelectorImpl.java: Added import. 2005-12-26 Anthony Green <green@redhat.com> * java/net/Socket.java (connect): Don't close the socket on exceptions. * gnu/java/nio/SocketChannelImpl.java (read): Compute the right amount of data to read (dst.remaining()). * gnu/java/nio/DatagramChannelImpl.java (receive): Ditto. * gnu/java/nio/SelectorImpl.java (select): Handle OP_CONNECT properly. From-SVN: r109114
This commit is contained in:
@@ -437,25 +437,7 @@ public class Socket
|
||||
if (! isBound())
|
||||
bind(null);
|
||||
|
||||
try
|
||||
{
|
||||
getImpl().connect(endpoint, timeout);
|
||||
}
|
||||
catch (IOException exception)
|
||||
{
|
||||
close();
|
||||
throw exception;
|
||||
}
|
||||
catch (RuntimeException exception)
|
||||
{
|
||||
close();
|
||||
throw exception;
|
||||
}
|
||||
catch (Error error)
|
||||
{
|
||||
close();
|
||||
throw error;
|
||||
}
|
||||
getImpl().connect(endpoint, timeout);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user