To follow up on recently submitted fixes to SSLServerSocket, SSLServerSocket
should also throw a java.net.ConnectException when it gets a connection
refused by peer error (SSL error -5981), instrewad of the generic
java.net.SocketException...

Actually, maybe JSS should have a subclass under java.net.SocketException
for each SSL exception that can occur...That would make for a lot more
user-friendly JSS error reporting :)

What do you say?

-- P

Patrick wrote:

>I'd like to recommend these changes to JSS:
>
>1. have the accept() method in SSLServerSocket throw the
>java.io.InterruptedIOException if the timeout expires, instead of
>SocketException.
>
javax.net.SSLServerSocket throws a SocketTimeoutException when the
timeout expires. When we implement JSSE-compliance for JSS (scheduled
04/05/2002), we will do it this way.

I don't want to change the signature of the method because it would
break compatibility.

>
>2. have the SSLSocket constructor throw a java.net.BindException if the
>local port is in use, instead of the generic SocketException.
>

Since BindException is a subclass of SocketException, this is low risk.
BindException is the correct exception to throw.

Please file bugs for these items.

Thanks,
-jamie




Reply via email to