LocalSocket doesn't support setSoTimeout() and getSoTimeout(). However, it seems more sensible to not throw and exception and ignore setSoTimeout() instead. This is needed to get the X/Escher peers to work with LocalSockets.
2006-06-28 Roman Kennke <[EMAIL PROTECTED]>
* gnu/java/net/local/LocalSocket.java
(setSoTimeout): Don't throw exception and ignore request.
(getSoTimeout): Don't throw exception and always return 0.
/Roman
--
“Improvement makes straight roads, but the crooked roads, without
Improvement, are roads of Genius.” - William Blake
Index: gnu/java/net/local/LocalSocket.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/net/local/LocalSocket.java,v
retrieving revision 1.1
diff -u -1 -2 -r1.1 LocalSocket.java
--- gnu/java/net/local/LocalSocket.java 16 Apr 2006 21:54:09 -0000 1.1
+++ gnu/java/net/local/LocalSocket.java 28 Jun 2006 18:26:34 -0000
@@ -238,30 +238,31 @@
public void setOOBInline (boolean b) throws SocketException
{
throw new SocketException ("local sockets do not support this option");
}
public boolean getOOBInline () throws SocketException
{
throw new SocketException ("local sockets do not support this option");
}
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
{
throw new SocketException ("local sockets do not support this option");
}
public int getSendBufferSize() throws SocketException
{
throw new SocketException ("local sockets do not support this option");
}
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
