Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Reprioritization of Jetty

Hi

Simone. Another thing I want to ask you(sorry for so many questions). I set the key 4 to 100 in the settings to enable the window size I got for every frame.

        int key1 = 4;

        Integer value1 = 100;

        settings1.put(key1, value1);

        SettingsFrame settingsFrame = new SettingsFrame(settings1, false);


But I didn't send any window update frame. I was wondering whether Jetty did this in the background. 

And when I tried to send window_update frame to the server. I find Jetty only supports the method for Http2Session. Session doesn't have this function. But you know I use this


        FuturePromise<Session> sessionPromise = new FuturePromise<>();

        client.connect(sslContextFactory, new InetSocketAddress(host, port),

        new ServerSessionListener.Adapter(), sessionPromise);

        Session session = sessionPromise.get(5, TimeUnit.SECONDS);


to open the session. I don't know how to send window_update_frame. Could you please give me a hint? Thank you so much.

Best Regards

Muhui Jiang


2015-09-27 22:23 GMT+08:00 Muhui Jiang <jiangmuhui@xxxxxxxxx>:
Hi

Thanks. It really works.

Best Regards
Muhui Jiang

2015-09-27 22:15 GMT+08:00 Simone Bordet <sbordet@xxxxxxxxxxx>:
Hi,

On Sun, Sep 27, 2015 at 4:04 PM, Muhui Jiang <jiangmuhui@xxxxxxxxx> wrote:
> Hi
>
> A few days ago. Simone told me Jetty can send a single priority frame.
>
> According to RFC7540. Stream priorities can be changed using priority frame.
>
> I find that only the session has a function named priority to send a
> priority frame.
>
> Like this:
>
> session.priority(new PriorityFrame(1, 255, false), Callback.NOOP);

PriorityFrame has 2 constructors. One of them takes 2 streamIds, the
actual stream id and the parent stream id.

This should be enough to cover your case: you send a
PriorityFrame(streamIdA, streamIdC, ...)

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top