bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug crypto/31626] javax.net.SocketFactory#createSocket() throws Unsuppo


From: overholt at redhat dot com
Subject: [Bug crypto/31626] javax.net.SocketFactory#createSocket() throws UnsupportedOperationException
Date: 18 Apr 2007 20:27:28 -0000


------- Comment #2 from overholt at redhat dot com  2007-04-18 21:27 -------
In http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=236832#c2, Tom Tromey
wrote:
> how does Mylar use this socket once it has created it?

Socket socket = getSslContext().getSocketFactory().createSocket();
socket.bind(new InetSocketAddress(clientHost, clientPort));
socket.connect(new InetSocketAddress(remoteHost, remotePort),
params.getConnectionTimeout());

I'm not sure if we have a timeout somewhere.  I changed these calls to:

Socket socket = getSslContext().getSocketFactory().createSocket(remoteHost,
remotePort, clientHost, clientPort);

It'd be cool if someone could tell me whether or not that's crack-tastic.  It
seems to work with gij but it should work with the proprietary VMs as well.  I
this it works, but I haven't tested extensively.  


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31626





reply via email to

[Prev in Thread] Current Thread [Next in Thread]