summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2006-06-28 18:28:33 +0000
committerRoman Kennke <roman@kennke.org>2006-06-28 18:28:33 +0000
commit823253efc205ac53d49c1a4860c1f1d1d056424c (patch)
tree0532df46ef35a1300ee66184c78a3c86d2c58c32
parent9a074ee293da612f0ac9421c0efbeff6d3118415 (diff)
downloadclasspath-823253efc205ac53d49c1a4860c1f1d1d056424c.tar.gz
2006-06-28 Roman Kennke <kennke@aicas.com>
* gnu/java/net/local/LocalSocket.java (setSoTimeout): Don't throw exception and ignore request. (getSoTimeout): Don't throw exception and always return 0.
-rw-r--r--ChangeLog6
-rw-r--r--gnu/java/net/local/LocalSocket.java5
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a6186f0a8..081e677fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-28 Roman Kennke <kennke@aicas.com>
+
+ * gnu/java/net/local/LocalSocket.java
+ (setSoTimeout): Don't throw exception and ignore request.
+ (getSoTimeout): Don't throw exception and always return 0.
+
2006-06-28 David Gilbert <david.gilbert@object-refinery.com>
* javax/swing/JComponent.java
diff --git a/gnu/java/net/local/LocalSocket.java b/gnu/java/net/local/LocalSocket.java
index b977d69c1..b262c794e 100644
--- a/gnu/java/net/local/LocalSocket.java
+++ b/gnu/java/net/local/LocalSocket.java
@@ -247,12 +247,13 @@ public final class LocalSocket extends Socket
public void setSoTimeout (int i) throws SocketException
{
- throw new SocketException ("local sockets do not support this option");
+ // Ignore.
}
public int getSoTimeout () throws SocketException
{
- throw new SocketException ("local sockets do not support this option");
+ // We don't support timeout, so we return 0.
+ return 0;
}
public void setSendBufferSize (int i) throws SocketException