Socket bugs

Gerhard Paulus gpaulus at stud.uni-frankfurt.de
Thu Jan 7 11:19:01 PST 1999


Kaffe VM 1.0.b3 :

1.
Socket.setSoTimeout(int) throws NotImplementedException (or similar)

2. 
a host name "" is not taken as local host (as in JDK)

if (host.equals("")) {
	host= "127.0.0.1" ;
}
socket = new Socket(host, port);

3. 
if a socket is closed and a thread is reading from the socket's input
stream then  this thread should be able to catch the SocketException
"Socket closed" (as in JDK)

Currently no exception is thrown and the input stream of the closed
socket somehow still seems to be active. IAC the Thread object cannot be
reused for reading from a new Socket.

The only workaround I found was to stop() the reading thread explicitly
and call cleanup code before reading from a new Socket.


More information about the kaffe mailing list