GithubHelp home page GithubHelp logo

Comments (3)

tippexs avatar tippexs commented on June 29, 2024 1

Hi @valtzu Thanks for reaching out! This looks indeed not correct and I was able to reproduce the issue with the latest version of our Docker-Image and the format mentioned above.

We will have a look on this and share our progress here! Thanks again for reaching out!

from unit.

valtzu avatar valtzu commented on June 29, 2024

Actually this behavior seems to be random – sometimes it works, sometimes it doesn't 🤔

unit-1  | {"bodyLength":"82733","status":"82733"}
unit-1  | {"bodyLength":"82735","status":"82735"}
unit-1  | {"bodyLength":"82735","status":"200"}
unit-1  | {"bodyLength":"82735","status":"82735"}
unit-1  | {"bodyLength":"82735","status":"200"}
unit-1  | {"bodyLength":"82736","status":"200"}
unit-1  | {"bodyLength":"82734","status":"200"}
unit-1  | {"bodyLength":"82736","status":"200"}
unit-1  | {"bodyLength":"82736","status":"200"}
unit-1  | {"bodyLength":"82736","status":"200"}
unit-1  | {"bodyLength":"82736","status":"200"}
unit-1  | {"bodyLength":"82736","status":"200"}

from unit.

hongzhidao avatar hongzhidao commented on June 29, 2024

Hi @valtzu,
Thanks for the reporting. Will fix it soon with the patch.

diff --git a/src/nxt_var.c b/src/nxt_var.c
index 2600371b..57110f66 100644
--- a/src/nxt_var.c
+++ b/src/nxt_var.c
@@ -147,7 +147,7 @@ nxt_var_ref_get(nxt_tstr_state_t *state, nxt_str_t *name, nxt_mp_t *mp)

     if (decl != NULL) {
         ref->handler = decl->handler;
-        ref->cacheable = decl->cacheable;
+        ref->cacheable = (mp == state->pool) ? decl->cacheable : 0;

         goto done;
     }

from unit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.