- 24 Oct, 2017 1 commit
-
-
Poul-Henning Kamp authored
Originally we decided that the output of VCC should be 100% stand-alone and therefore contain no #includes at all. This was hoped to avoid unspecified trouble with C-compilers at runtime. But C99 is old enough to drink now, so we move forward. The script in tools/include_wash.py checks *.c files and complains about violations of our intended #include orders.
-
- 23 Oct, 2017 11 commits
-
-
Geoff Simmons authored
Getting the quoting right to pass along the empty string in SunOS is not working. The code path is tested in vsl_glob_test.
-
Geoff Simmons authored
fnmatch(3) appears to know FNM_IGNORECASE but not FNM_CASEFOLD.
-
Geoff Simmons authored
Don't include vrt.h after cache_varnishd.h, which includes cache.h.
-
Dag Haavi Finstad authored
The extra locking prevents the race where a request thread is setting r2->cond = NULL and the session thread is testing r2->cond != NULL. Fixes: #2434
-
Dag Haavi Finstad authored
Keeping these in struct sess would necessitate extra locking for h/2 where we have multiple reqs in flight concurrently. Fixes: #2268
-
Dag Haavi Finstad authored
-
Dag Haavi Finstad authored
This moves the body status decision to h2_end_headers, to make sure that it is only done once per request. We also move the Cookie header concatenation to h2_end_headers, to avoid stepping on any changes that may have taken place in VCL. Fixes: #2305
-
Poul-Henning Kamp authored
This is part of the $ABI reorg.
-
Poul-Henning Kamp authored
-
Federico G. Schwindt authored
-
Federico G. Schwindt authored
-
- 22 Oct, 2017 8 commits
-
-
Poul-Henning Kamp authored
-
Poul-Henning Kamp authored
Two static checkers and myself had problems understanding the old code.
-
Poul-Henning Kamp authored
-
Poul-Henning Kamp authored
-
Poul-Henning Kamp authored
-
Federico G. Schwindt authored
-
Federico G. Schwindt authored
-
Federico G. Schwindt authored
Avoid an undefined behavior of memcpy() in _tr_stored_block(). Allegedly the behavior of memcpy() is undefined if the source pointer is NULL, even if the number of bytes to copy is zero.
-
- 21 Oct, 2017 3 commits
-
-
Poul-Henning Kamp authored
-
Poul-Henning Kamp authored
-
Poul-Henning Kamp authored
-
- 18 Oct, 2017 1 commit
-
-
Dag Haavi Finstad authored
-
- 15 Oct, 2017 1 commit
-
-
Nils Goroll authored
Trying to tackle #2460
-
- 13 Oct, 2017 1 commit
-
-
Nils Goroll authored
-
- 12 Oct, 2017 4 commits
-
-
Nils Goroll authored
for i < 0, rlen could underflow. We are safe because of the check for i < 0 further down, so this change is just a minor cleanup. Fixes #2444
-
Nils Goroll authored
Together with the previous commit, this fixes potentially misleading error messages. Because we called vcc_path_dlopen on all vmod_path elements irrespective of the kind of dlopen() error, the actual root cause could be hidden. Example: dlerror: .../lib/libvmod_blob/.libs/libvmod_debug.so: cannot open shared object file when the actual error was dlerror: .../lib/libvmod_debug/.libs/libvmod_debug.so: undefined symbol:...
-
Nils Goroll authored
-
Federico G. Schwindt authored
Addresses #2456 in a different way.
-
- 10 Oct, 2017 1 commit
-
-
Nils Goroll authored
ensure wrk is always set and, for the backend side, move vfp_ctx setup to a single place in vbf_stp_startfetch() Fixes #2453
-
- 06 Oct, 2017 2 commits
-
-
Nils Goroll authored
Fixes #2451
-
Nils Goroll authored
Previously, a FetchError in vbe_dir_getfd() was too general to be useful. Now we log an error with the same identifier as the corresponding statistic: * unhealthy * busy (max_connections reached) * fail (no connection for real) For these, we also log the backend name because we have not yet issued a BackendOpen VSL. A failed WS_Alloc is logged as "out of workspace".
-
- 05 Oct, 2017 7 commits
-
-
Nils Goroll authored
-
Nils Goroll authored
We use an implicit rule to tell make how to turn vsc into c and manually define the vsc files in Makefile.am. The implicit rule tells automake to add .vsc to SUFFIXES, which in turn allows us to add the actual vscs to varnishd_SOURCES. To avoid triple configuration of the list of built VSC .c and .h files, we generate these in configure. AC_SUBSTing files into _SOURCES is forbidden by autoconf for a good reason: Adding sources to the build should remain an explicit process to avoid accidentally compiling in code just because someone had files with a magic name lying around. As the implicit .vsc -> .c rule does not allow for additional dependencies, we add in the dependency to vsctool using the auto-generated list of c files. BUILT_SOURCES is used to ensure that, for default make targets, headers generated from vscs are always present before the actual varnishd sources are being build, of which some depend on vsc headers. For subsequent builds, include dependency tracking takes over. The Makefile rules are deliberately simple to hopefully cover all make flavours available on the planet. Notice that, for example, if we limited ourselves to gmake, we could use much simpler substitution rules to generate VSC_GEN_C and _H instead of the de-tour via configure. Portability is also the reason for renaming all vsc files.
-
Poul-Henning Kamp authored
recycle connections between protocols.
-
Poul-Henning Kamp authored
-
Nils Goroll authored
Should fix distcheck someone(tm) might revisit this again later
-
Nils Goroll authored
-
Nils Goroll authored
Otherwise we might see garbled output files
-