1. 16 Dec, 2019 5 commits
  2. 15 Dec, 2019 1 commit
  3. 13 Dec, 2019 4 commits
  4. 12 Dec, 2019 4 commits
  5. 11 Dec, 2019 4 commits
    • Dridi Boukelmoune's avatar
      Rename obscure symbol variables · 6d1a3028
      Dridi Boukelmoune authored
      Every time I read this code I fail to remember which symbol is which, so
      from now on the instance symbol will be called isym, the object symbol
      osym and the method symbols msym.
      6d1a3028
    • Dridi Boukelmoune's avatar
      Whitespace OCD · 1a6a6e8e
      Dridi Boukelmoune authored
      They fit within 80 columns.
      1a6a6e8e
    • Dridi Boukelmoune's avatar
      Omit the separator in VCC functions extra arguments · 12a16117
      Dridi Boukelmoune authored
      Instead, the comma is emitted when there is indeed an extra argument.
      
      This change was initially submitted in #3147 and is needed when the
      extra argument may vary for a given symbol. More specifically, when
      a method symbol may be shared by several instance symbols, it becomes
      really difficult to find a spot where that extra comma might be added.
      
      Removing it from the extra argument itself makes this easier once we
      reach the point where method symbols are unique (per object) instead
      of repeated (per instance).
      12a16117
    • Dridi Boukelmoune's avatar
      Align symbol table columns in the generated C code · 77d5d0f0
      Dridi Boukelmoune authored
      At the end of the VGC we output the contents of the symbol table inside
      a C comment. It might look like this:
      
          /*
           * Symbol Table
           *
           * reserved  VOID       41 41 acl
           * reserved  VOID       41 41 backend
           * action    VOID       40 41 ban
           * var       HTTP        0 99 bereq
           * var       BACKEND     0 99 bereq.backend
           * [...]
           */
      
      All columns are currently aligned because we know all the native VCL
      types and only the last column with the symbol names has unpredictable
      and arbitrary entries lengths.
      
      However, considering the following snippet:
      
          new fb = directors.fallback();
      
      The involved symbols will look like:
      
          object    VOID      41 41 directors.fallback
          instance  INSTANCE  41 41 fb
          func      VOID      40 41 fb.add_backend
          func      BACKEND   40 41 fb.backend
          func      VOID      40 41 fb.remove_backend
      
      In the future VMOD objects will likely grow their own types and for the
      same snippet we may have this instead:
      
          object    directors.fallback  41 41 directors.fallback
          method    VOID                40 41 directors.fallback.add_backend
          method    BACKEND             40 41 directors.fallback.backend
          method    VOID                40 41 directors.fallback.remove_backend
          instance  directors.fallback  41 41 fb
      
      This change was initially submitted as part of #3147, but was considered
      trivial and fast-track-able by PHK.
      77d5d0f0
  6. 09 Dec, 2019 9 commits
  7. 06 Dec, 2019 4 commits
  8. 03 Dec, 2019 2 commits
  9. 02 Dec, 2019 7 commits
    • Poul-Henning Kamp's avatar
      For CLI commands forwarded indirectly to the worker (via · 5d8a6c00
      Poul-Henning Kamp authored
      mgt_cli_askchild() as opposed to directly through mcf_askchild()),
      a truncated CLI response is not a failure.
      
      Fixes #3038
      5d8a6c00
    • Dridi Boukelmoune's avatar
      GC stale comment · 32c7d718
      Dridi Boukelmoune authored
      Refs 45af9764
      32c7d718
    • Nils Goroll's avatar
      gc unused argument · 381af034
      Nils Goroll authored
      I actually did consider this before, but thought we should keep it
      because we are currently dicussing to add a CTX to vmod object
      destructors. But this piece of code is unrelated and at any rate the
      argument can be added back when we need it.
      
      in short: @Dridi is right
      381af034
    • Nils Goroll's avatar
      improve the vcl(label) documentation · 2c8aefc3
      Nils Goroll authored
      2c8aefc3
    • Nils Goroll's avatar
      cleanup implicit rollback for return(vcl(...)) · 525ff0e7
      Nils Goroll authored
      VCC generates a call to VPI_vcl_select() before returning to the fsm. We
      basically conducted half a rollback in VPI_vcl_slect and a rull rollback
      in the fsm.
      
      De-duplicate this dance and assert in the fsm that our request looks
      rolled back.
      525ff0e7
    • Nils Goroll's avatar
      assert that esi requests do start on vcl0 · fd7c8bfc
      Nils Goroll authored
      ... which is the vcl the topreq started on
      fd7c8bfc
    • Nils Goroll's avatar
      gc vcl argument of VCL_Task* · 78c65ef9
      Nils Goroll authored
      It is unclear to me what the original intention was, but at any rate,
      the privs are not vcl-specific and the vcl argument was not used.
      
      The motivation for this change is the follow up commit
      "cleanup implicit rollback for return(vcl(...))": For this commit, it
      would be unclear which vcl to roll back with, but as it actually does
      not matter, I think this change is warranted.
      78c65ef9