Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] DragonFlyBSD KEEPALIVE_TUNABLE

Tom van der Woerdt
July 25, 2013 04:58AM
Hi,

Wouldn't a better place for this patch be the configure script instead of hardcoding the values?

Tom


> On 25 jul. 2013, at 03:32, Sepherosa Ziehau <sepherosa@gmail.com> wrote:
>
>> On Wed, Jul 24, 2013 at 10:32 PM, Maxim Konovalov <maxim@nginx.com> wrote:
>> Hi,
>>
>>> On 7/24/13 5:42 PM, Sepherosa Ziehau wrote:
>>> Hi,
>>>
>>> On DragonFlyBSD, TCP_KEEPIDLE and TCP_KEEPINTVL are in milliseconds
>>> instead of seconds. Following patch fixes this:
>>> http://leaf.dragonflybsd.org/~sephe/ngx_keepalive.diff
>> Thanks for the patch!
>>
>> Just curious: are there any reasons why these timers have a
>> millisecond resolution and not compatible with other BSD's?
>
> When I added TCP_KEEP* sockopts to DragonFlyBSD, I checked the unit of
> TCP_KEEP* on various systems that had implemented them (FreeBSD did
> not have that option at that time; not sure about NetBSD). They are
> using different unit, some use half-second (e.g. OpenVMS), some use 1
> second (e.g. Linux); and there is no standard specifies which unit
> should be used. Another reason is that I want to keep the sockopts'
> unit consistent w/ the sysctls' unit. Well, and I actually used
> TCP_KEEP* sockopts in my own project at that time, which requires
> higher resolution TCP_KEEP* ;)
>
> Best Regards,
> sephe
>
> --
> Tomorrow Will Never Die
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] DragonFlyBSD KEEPALIVE_TUNABLE

Sepherosa Ziehau 833 July 24, 2013 09:44AM

Re: [PATCH] DragonFlyBSD KEEPALIVE_TUNABLE

Maxim Konovalov 303 July 24, 2013 10:34AM

Re: [PATCH] DragonFlyBSD KEEPALIVE_TUNABLE

Tom van der Woerdt 407 July 25, 2013 04:58AM

Re: [PATCH] DragonFlyBSD KEEPALIVE_TUNABLE

Ruslan Ermilov 284 July 25, 2013 04:52AM



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

Online Users

Guests: 206
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