- 30 Sep, 2019 6 commits
-
-
Nils Goroll authored
Ref #3067 @andrewwiik would you please look after the user documentation?
-
Nils Goroll authored
Ref #3067
-
Nils Goroll authored
Ref #3067
-
Andrew Wiik authored
-
Poul-Henning Kamp authored
-
Guillaume Quintard authored
-
- 29 Sep, 2019 1 commit
-
-
Dridi Boukelmoune authored
Spotted-By: Coverity Scan
-
- 28 Sep, 2019 1 commit
-
-
Guillaume Quintard authored
-
- 27 Sep, 2019 3 commits
-
-
Guillaume Quintard authored
-
Nils Goroll authored
-
Dridi Boukelmoune authored
When de16dba2 landed its documentation was mixed up with the other sess_dropped counter. When sess_dropped appeared in ac393c4b the sess_drop counter was still function, it died short after as a side effect of ac2e067b.
-
- 25 Sep, 2019 1 commit
-
-
Poul-Henning Kamp authored
WS allocation on 32bit RH Fixes #3061
-
- 24 Sep, 2019 1 commit
-
-
Dag Haavi Finstad authored
A failing write on a different stream will set h2->error, which would cause us to panic here on the following AZ(h2->mailcall). Fixes: #3040
-
- 23 Sep, 2019 2 commits
-
-
Poul-Henning Kamp authored
-
David Carlier authored
-
- 17 Sep, 2019 1 commit
-
-
Jordan Christiansen authored
-
- 16 Sep, 2019 6 commits
-
-
Pål Hermunn Johansen authored
To be exact: Update Via header, copyright year. See 0c9a93f1.
-
David Carlier authored
- According to #3051, this does not seem too obvious to be properly detected on Linux systems. - Some other OSes prefer to play in their own 'backyard', having similar feature but named differently (e.g. NetBSD) would need addition autotools check. - Thus proposing implementing the macro with the volatile pointer approach rather than memory fence's, sufficient to prevent compiler optimisations.
-
Pål Hermunn Johansen authored
-
Poul-Henning Kamp authored
-
Poul-Henning Kamp authored
-
Poul-Henning Kamp authored
-
- 13 Sep, 2019 2 commits
-
-
Nils Goroll authored
by providing a trivial tool to rename vmod RST references. To @Dridi and all other ladybug-lovers: I tried, but gave up after 5'. Maybe spatch on its own would have done the job, but sed is just so much simpler and, IMHO, totally appropriate for the job.
-
Nils Goroll authored
Ref 904ceabf
-
- 11 Sep, 2019 1 commit
-
-
Martin Blix Grydeland authored
Ref previous commit to remove the use of kill(signull) on the pids of the Varnish processes to test liveness.
-
- 10 Sep, 2019 1 commit
-
-
Martin Blix Grydeland authored
A bug was uncovered in the VSM code that checks if kill(SIGNULL) would work as a test of liveness of the master and worker processes. If the user running the utility has the required permissions to send signal to the worker process, but not the management process, the code would wrongly assume it could do kill on both. It would then end up in a connect loop never succeeding. Because kill() can not always be successfully run (a common scenario when the user running varnishlog is not the same UID as the cache processes), there is a fall back to using fstat to check for Varnish restarts. Since this fallback is active for most use cases anyways, it was decided to retire the kill() mechanism rather than to fix it. This way the behaviour does not change depending on what user the utility is run as. This change was OK'd by PHK after discussing it on IRC.
-
- 09 Sep, 2019 14 commits
-
-
Nils Goroll authored
as @slimhazard pointed out when reviewing a suggestion I made to some vmod documentation, the vmodtool generated link target names are confusing to users: vmod_foo.func is nothing you can use as VCL, while foo.func() is.
-
Poul-Henning Kamp authored
-
Poul-Henning Kamp authored
-
Poul-Henning Kamp authored
-
Poul-Henning Kamp authored
-
Martin Blix Grydeland authored
Clusters VSM allocations start at offset 16. Make sure that the published segment includes that adjustment.
-
Martin Blix Grydeland authored
The vsm_set vg pointer points to the last matched segment insertion, and is used as an optimization when looking for existing entries in the list. varnishd guarantees that insertions are always ordered, so there is no need to search the preceeding entries on a successful match. When parsing an index containg elements that included entries that are added and then subsequently removed in a later entry, this pointer would be advanced to the very end, failing to match the entries in between when parsing the rest of the file. Fix this mechanism by only updating the pointer on a successful match, and also advancing it one step it if the entry it is pointing to is removed. Note that these types of events are not supposed to be possible, because varnishd will when rewriting the index only include the active ones, removing any add-then-remove pairs. But if for whatever reason an attempt is made to reread a list, with this patch it should not cause problems.
-
Martin Blix Grydeland authored
Now that we incrementally read the file, the check if the mtime of the index file has checked has to go away. If not, the index file will always be marked as new, forcing a reread of the entire index.
-
Martin Blix Grydeland authored
Several places in the code lacked checking that these were still valid objects (ie not free'd).
-
Martin Blix Grydeland authored
When a cluster is marked stale, there is no mechanism to actually remove it once all its containing segments (which would also be marked stale) goes away. Fix this by executing vsm_delseg on the cluster in VSM_Unmap if it is marked stale.
-
Martin Blix Grydeland authored
If a segment will be marked stale, it should not have its cluster flag removed until its actually deleted. This problem was observed in varnishtest as an assert. What happened was that a VSM_Map() was executed on a stale segment inside a cluster, which caused an assert when the cluster segment it pointed to was no longer marked VSM_FLAG_CLUSTER.
-
Martin Blix Grydeland authored
This speeds up vsm_findseg by keeping a direct pointer to the struct vsm_seg it points to in the vsm_fantom. To prevent stale vsm_fantoms in an application from causing segfaults, the last serial number seen is also kept on the fantom. If this serial number does not match, the slow path of iterating all segs to find the right match is done, and the fantom is updated to make any subsequent calls on the same fantom take the fast path. With this patch the fantoms store 2 serial numbers and a direct pointer to the seg. To fit this in struct vsm_fantom without breaking the ABI, the unused chunk pointer value has been repurposed, giving us two uintptr_t priv variables to work with. The direct segment pointer occupies one, and the two serial numbers occupy one half each of the other. This limits the bits for each serial to only 16 bits on 32 bit systems. But only direct matches is done, and it is unlikely that a stale fantom should have the exact right value to be accepted as valid.
-
Martin Blix Grydeland authored
When upgrading from when a previous release that doesn't have the latest VSM index file changes, the utilities will assert when trying to parse the index file from the previous version. Fix that by ignoring lines not starting with either '#', '+' or '-'.
-
Martin Blix Grydeland authored
This moves the exposed flag handling to the segment level, rather than the point level. This enables not having to iterate over each point when there is no change from the previous.
-