Release of nginx 1.17.1 and njs 0.3.3

Available release of the main branch nginx 1.17.1, within which the development of new features continues (in the parallel stable branch branch 1.16 Only changes related to fixing serious bugs and vulnerabilities are included.

Key changes:

  • The directive has been added limit_req_dry_run, which activates a dry run mode where the request rate limits are not applied (no rate limit), but the number of requests exceeding the limits is still counted in shared memory;
  • When used in the ‘upstream’ settings block with the directive ‘hash’ for load balancing with client affinity to a server, if an empty key value is specified, the round-robin mode is now activated;
  • Fixed a worker process crash when using caching alongside the ‘image_filter’ directive and redirecting error code 415 with the ‘error_page’ directive;
  • Fixed a worker process crash occurring when using the built-in Perl interpreter.

Additionally, it can be noted release njs 0.3.3, a JavaScript interpreter for the nginx web server. The njs interpreter implements ECMAScript standards and allows for extending nginx's capabilities for handling requests with scripts in the configuration. Scripts can be used in the configuration file to define advanced request processing logic, generate configurations, dynamically generate responses, modify requests/responses, or quickly create stubs for troubleshooting web applications.

In the new release of njs, issues identified during fuzz testing have been fixed. A global variable ‘process’ has been implemented with parameters and environment variables of the current process (process.pid, process.env.HOME, etc.). Writing to all built-in properties and methods is now possible. Implementation of Array.prototype.fill() has been added. Support for the syntax proposed in ECMAScript 5 has been implemented. getter and setter for binding an object property to a function, for example:

var o = {a:2};
Object.defineProperty(o, 'b', {get:function(){return 2*this.a}});

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster