Welcome! Log In Create A New Profile

Advanced

Re: [RFC] event/openssl: Add dynamic record size support for serving ssl trafic

Ilya Grigorik
May 12, 2015 11:00AM
Awesome, thanks for putting this together!

On Tue, May 5, 2015 at 6:39 AM, chen <gzchenym@126.com> wrote:

> There are 3 conditions, if true at the same time, may trigger SSL_write to
> send small record over the link, hard coded 1400 bytes at this time to
keep
> it fit into MTU size. We just send out 3 of this small record at most to
> reduce framing overhead when serving large object, that is enough for
> browser to discovery other dependency of the page at top of html file. If
> the buffer chain is smaller than 4096 bytes, it will not justify the
> overhead of sending small record. After idle for 60s(hard coded at this
> moment), start all over again.
>

A few followup notes and questions...

1) "small record" size should be closer to 1300 bytes to account for
various overhead, see [1].
2) any way to guarantee that packets are flushed at record boundaries?
3) why just 3 packets? I'd suggest emitting the first CWND's worth.. aka,
10.

ig

[1] https://issues.apache.org/jira/browse/TS-2503

On Tue, May 12, 2015 at 7:52 AM, Ilya Grigorik <ilya@igvita.com> wrote:

> Awesome, thanks for putting this together!
>
> On Tue, May 5, 2015 at 6:39 AM, chen <gzchenym@126.com> wrote:
>
>> There are 3 conditions, if true at the same time, may trigger SSL_write
>> to send small record over the link, hard coded 1400 bytes at this time to
>> keep it fit into MTU size. We just send out 3 of this small record at most
>> to reduce framing overhead when serving large object, that is enough for
>> browser to discovery other dependency of the page at top of html file. If
>> the buffer chain is smaller than 4096 bytes, it will not justify the
>> overhead of sending small record. After idle for 60s(hard coded at this
>> moment), start all over again.
>>
>
> A few followup notes and questions...
>
> 1) "small record" size should be closer to 1300 bytes to account for
> various overhead, see [1].
> 2) any way to guarantee that packets are flushed at record boundaries?
> 3) why just 3 packets? I'd suggest emitting the first CWND's worth.. aka,
> 10.
>
> ig
>
> [1] https://issues.apache.org/jira/browse/TS-2503
>
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[RFC] event/openssl: Add dynamic record size support for serving ssl trafic

gzchenym 1343 May 05, 2015 09:40AM

Re: [RFC] event/openssl: Add dynamic record size support for serving ssl trafic

Ilya Grigorik 622 May 12, 2015 11:00AM

Re: [RFC] event/openssl: Add dynamic record size support for serving ssl trafic

splitice 783 May 13, 2015 12:58AM

Re: [RFC] event/openssl: Add dynamic record size support for serving ssl trafic Attachments

W-Mark Kubacki 643 May 27, 2015 12:44PM

Re: [RFC] event/openssl: Add dynamic record size support for serving ssl trafic

splitice 724 June 01, 2015 09:06PM

Re: [RFC] event/openssl: Add dynamic record size support for serving ssl trafic

W-Mark Kubacki 615 June 02, 2015 02:16PM

Re: [RFC] event/openssl: Add dynamic record size support for serving ssl trafic

splitice 686 June 01, 2015 09:08PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 300
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready