How can the number of parallel/redundant open streams/temp_files be controlled/limited?

Paul Schlie schlie at comcast.net
Tue Jul 1 03:10:52 UTC 2014


Regarding:

> In http, responses are not guaranteed to be the same.  Each 
> response can be unique, and you can't assume responses have to be 
> identical even if their URLs match.

Yes, but potentially unique does not imply that upon the first valid ok or valid
partial response that it will likely be productive to continue to open further such
channels unless no longer responsive, as doing so will most likely be counter
productive, only wasting limited resources by establishing redundant channels;
being seemingly why proxy_cache_lock was introduced, as you initially suggested.

On Jun 30, 2014, at 9:32 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:

> Hello!
> 
> On Mon, Jun 30, 2014 at 09:14:06PM -0400, Paul Schlie wrote:
> 
>> (Seemingly, it may be beneficial to simply replace the 
>> sequentially numbered temp_file scheme with hash-named scheme, 
>> where if cached, the file is simply retained for some period of 
>> time and/or other condition, and which may be optionally 
>> symbolically aliased using their uri path and thereby 
>> respectively logically accessed as a local static file, or 
>> deleted upon no longer being needed and not being cached; and 
>> thereby kill multiple birds with one stone per-se?)
> 
> Sorry for not following your discussion with yourself, but it looks 
> you didn't understand what was explained earlier:
> 
> [...]
> 
>>>>>>> (Out of curiosity, why would anyone ever want many multiple 
>>>>>>> redundant streams/temp_files ever opened by default?)
>>>>>> 
>>>>>> You never know if responses are going to be the same.  The part 
>>>>>> which knows (or, rather, tries to) is called "cache", and has 
>>>>>> lots of directives to control it.
>>>>> 
>>>>> - If they're not "the same" then the tcp protocol stack has failed, which is nothing to do with ngiinx.
> 
> In http, responses are not guaranteed to be the same.  Each 
> response can be unique, and you can't assume responses have to be 
> identical even if their URLs match.
> 
> -- 
> Maxim Dounin
> http://nginx.org/
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list