Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Requesting for working sample of jetty server and client with HTTP/2 over HTTPS

Hi
Maybe try to explain what you want to do exactly instead of tell us how you achieve to tell us how to do it :)
response listener on client side? You can the same instance as long as your implementation is thread safe
using your own field X.... is perfectly fine and Jetty will/should not remove it.


On Mon, Mar 4, 2019 at 4:59 PM sharanu patil <sharanupatil567@xxxxxxxxx> wrote:
Thanks for the reply Oliver Lamy.

I am using JDK8 and jetty version 9.4.14.
I was able to resolve the issue by changing -Xbootclasspath/a to -Xbootclasspath/p.

One more clarification, Is it fine to  create new response listener for every request ? As i need to correlate the request and response using identifier.
(Or ) We can add this identifier in header using X-Request-Id but server may remove this id from response header.

Will creating new listener has any performance drop ?
Is there any other way to correlate request and response(i mean for which request i received response asynchronously).

Regards,
Sharanu Patil


.  

On Mon, Mar 4, 2019 at 11:51 AM Olivier Lamy <olamy@xxxxxxxxxxx> wrote:
Hi
which Jetty version are you using?


On Mon, Mar 4, 2019 at 2:46 PM sharanu patil <sharanupatil567@xxxxxxxxx> wrote:
Thanks for the reply Joakim Erdfelt.


I am getting below exception. If i pass SslContextFactory instance i won't this problem, but i am unable to send http2 with https where as just http2 is working fine.
java.lang.NullPointerException
at org.eclipse.jetty.io.ssl.SslClientConnectionFactory.newConnection(SslClientConnectionFactory.java:70)
at org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2.lambda$doStart$1(HttpClientTransportOverHTTP2.java:107)
at org.eclipse.jetty.http2.client.HTTP2Client$ClientSelectorManager.newConnection(HTTP2Client.java:438)
at org.eclipse.jetty.io.ManagedSelector.createEndPoint(ManagedSelector.java:222)
at org.eclipse.jetty.io.ManagedSelector.access$1500(ManagedSelector.java:60)
at org.eclipse.jetty.io.ManagedSelector$CreateEndPoint.run(ManagedSelector.java:825)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:754)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:672)
at java.lang.Thread.run(Thread.java:748)

Regards,
Sharanu Patil

On Sun, Mar 3, 2019 at 5:14 PM Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
Server:

Client - High Level: (does HTTP/1.1 and HTTP/2)
Basic Usage of HttpClient with default behaviors

HTTP/2 Usage of HttpClient with HttpClientTransportOverHTTP2

Client - Low Level: (only does raw HTTP/2)
Basic Usage of HTTP2Client


Joakim Erdfelt / joakim@xxxxxxxxxxx


On Sat, Mar 2, 2019 at 1:34 PM sharanu patil <sharanupatil567@xxxxxxxxx> wrote:

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users


--
Olivier
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users


--
Olivier

Back to the top