From 823253efc205ac53d49c1a4860c1f1d1d056424c Mon Sep 17 00:00:00 2001 From: Roman Kennke Date: Wed, 28 Jun 2006 18:28:33 +0000 Subject: 2006-06-28 Roman Kennke * gnu/java/net/local/LocalSocket.java (setSoTimeout): Don't throw exception and ignore request. (getSoTimeout): Don't throw exception and always return 0. --- ChangeLog | 6 ++++++ gnu/java/net/local/LocalSocket.java | 5 +++-- 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 + + * 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 * 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 -- cgit v1.2.1