Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Range in Http/2

Hi,

On Sun, Sep 27, 2015 at 12:24 PM, Muhui Jiang <jiangmuhui@xxxxxxxxx> wrote:
> Hi
>
> I see. When I set the value of RANGE as “bytes=100-400” it works. But when
> the value of range doesn't have such a format. The result goes like what I
> mentioned in my first Email. I think it may not be a bug of Jetty. But this
> design may not be so good I suggest Jetty can add some restriction to help
> the users build range in right format.
>
> Another thing is about the PING. Here is what I do with ping frame:
>
> byte[] payload = new byte[8];
>
> session.ping(new PingFrame(null, false), Callback.NOOP);

As per specification, the PING payload must be exactly 8 bytes, cannot be null.
I have improved PingFrame to offer handy constructors.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top