[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-dev] SSL over spdy with Jetty 9
|
Hi Abhinav,
this should be straight forward. Could you please paste your whole
TestClient code? Does it work with a browser as client?
Cheers,
Thomas
Am 2/8/13 5:09 AM, schrieb Abhinav Rajan:
Hello,
I recently upgraded to Jetty 9. I am trying to send data to a SPDY
client over SSL and I am getting a time out exception. Please find the
details of the exception below. I have set NextProtoNego.debug to true.
I am using npn-boot-1.1.1.v20121030.jar.
VMargs:
-Xbootclasspath/p://Users/abhinav/Desktop/npn-boot-1.1.1.v20121030.jar
I have tried it it out with 8.12 and 7.62 versions of the npn boot jar.
Kindly note that I was able to send data over SSL when we used Jetty 7
along with the npn 7.6.2.v20120308 version. Also the code works fine
without SSL.
************ SPDY Exception ************
[C] NPN supported for ac42091[SSLEngine[hostname=127.0.0.1 port=53182]
SSL_NULL_WITH_NULL_NULL]
[C] NPN protocols not sent by server for
ac42091[SSLEngine[hostname=127.0.0.1 port=53182] SSL_NULL_WITH_NULL_NULL]
java.util.concurrent.TimeoutException
at org.eclipse.jetty.util.FuturePromise.get(FuturePromise.java:130)
at TestClient.main(TestClient.java:52)
************ SPDY Client ************
NextProtoNego.debug = true;
SPDYClient.Factory clientFactory = new SPDYClient.Factory(
SecurityHelper.getSSLContextFactory(keystoreFile,
keystorePasswordFile, serverCertificateFile,
caCertificateFile));
clientFactory.start();
SPDYClient client = clientFactory.newSPDYClient(SPDY.V3);
************ SPDY Server ************
// Wire up and start the connector
Server server = new Server();
SPDYServerConnector connector = new SPDYServerConnector(server,
SecurityHelper.getSSLContextFactory(keystoreFile,
keystorePasswordFile, serverCertificateFile,
caCertificateFile), frameListener);
connector.setHost("localhost");
connector.setPort(53182);
server.addConnector(connector);
server.start();
server.join();
Thanks,
Abhinav
_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev