Welcome! Log In Create A New Profile

Advanced

Re: Random order of configuration file reading

All files from this thread

File Name File Size   Posted by Date  
include-sorted.patch 395 bytes open | download Joshua Zhu 11/28/2012 Read message
Gena Makhomed
November 28, 2012 07:56AM
On 28.11.2012 14:23, Maxim Dounin wrote:

>> This is a known issue. It has been fixed in our own
>> Tenginehttp://tengine.taobao.org
>> distribution:
>> https://github.com/taobao/tengine/blob/master/src/os/unix/ngx_files.c#L362
>>
>> If you want to use official nginx only, you can apply the patch below:
>>
>> @Maxim:
>> Would you please consider to apply this patch to the trunk? Thanks in
>> advance.
>
> I've already proposed removing GLOB_NOSORT to Igor a while ago.
> His position on this is to keep this in sync with Windows version
> where there is no sort guaranties.

this just can be described in documentation as drawback
of windows version of nginx, as many other "Known issues"
and limitations at http://nginx.org/en/docs/windows.html

because the UNIX version of nginx is the major and main stream.
so the best possible capabilities must be present in UNIX version,
not in windows one. and windows version must be compatible with
UNIX version, if this is possible.

now - capabilities of mainstream UNIX version artificially limited
to be "compatible" with even not-production-ready windows version.

this is very strange and unexpected and confusing
for users of mainstream UNIX/Linux version of nginx
(and this is more than 99% of all use cases of nginx)

for example, windows 7 not support cache module
and many other modules - but this is not reason
for remove this feature from UNIX version of nginx.

P.S.

similar example: method java.io.File.renameTo
(function "rename")works differently on Windows and UNIX,
this is "Known issues" and can't be avoided in any case.

btw, similar "rename bugs" and incompatibilities also
must be presented also in windows/unix version of nginx

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4017593
java.io.File.renameTo has different semantics on Solaris and Win32

http://pubs.opengroup.org/onlinepubs/009695399/functions/rename.html
rename

--
Best regards,
Gena

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

Random order of configuration file reading

philipp November 27, 2012 09:07AM

Re: Random order of configuration file reading Attachments

Joshua Zhu November 28, 2012 06:50AM

Re: Random order of configuration file reading

Antonio P.P. Almeida November 28, 2012 07:28AM

Re: Random order of configuration file reading

Antonio P.P. Almeida November 28, 2012 07:30AM

Re: Random order of configuration file reading

Maxim Dounin November 28, 2012 09:16AM

Re: Random order of configuration file reading

Maxim Dounin November 29, 2012 06:26PM

Re: Random order of configuration file reading

Joshua Zhu November 30, 2012 12:24AM

Re: Random order of configuration file reading

Gena Makhomed November 28, 2012 07:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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