-
Notifications
You must be signed in to change notification settings - Fork 603
Reduce UDS/segment name clashes across same-service instances #2023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
ankor2023
wants to merge
56
commits into
squid-cache:master
from
ankor2023:prevent-instance-shared-memory-segments-clashes
Closed
Changes from 55 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
17019eb
Update Instance.h
ankor2023 afe4abb
Update Instance.cc
ankor2023 6b5df31
Update Segment.cc
ankor2023 3a11795
Update Instance.cc
ankor2023 de275b5
Update Port.cc
ankor2023 250173a
Update Port.cc
ankor2023 e23bf80
Update Instance.cc
ankor2023 d2c138d
Update Port.cc
ankor2023 33d1e8a
Update Segment.cc
ankor2023 bab5435
Update Makefile.am
ankor2023 aaf0516
Update testRock.cc
ankor2023 beffd75
Update testUfs.cc
ankor2023 85b36ee
Update testHttpRange.cc
ankor2023 b176333
Update testHttpRequest.cc
ankor2023 c933d7f
Update testCacheManager.cc
ankor2023 0690091
Update Makefile.am
ankor2023 ce8b48d
Update Makefile.am
ankor2023 4844330
Update testHttpReply.cc
ankor2023 07ff1b2
Update testStore.cc
ankor2023 42991fa
Update testDiskIO.cc
ankor2023 cf340d8
Update Makefile.am
ankor2023 2bae8a5
Update Makefile.am
ankor2023 d519b7c
Update Instance.cc
ankor2023 a48d771
Update Instance.h
ankor2023 22ba2fd
Update Segment.cc
ankor2023 1dd8c21
Update Port.cc
ankor2023 79b9745
Some changes to fix building problems
ankor2023 5c399a3
Remove '-' to shorten the file name
ankor2023 1a513aa
Comment corrected
ankor2023 ca16337
Changes for passing source-maintenance tests
ankor2023 5780e8d
fixup: Removed now-duped/obsolete CONTRIBUTORS entry
rousskov 534cde0
fixup: Polished GetPidFilenameHash() description
rousskov 9bd813b
fixup: Remove an unnecessary word from the new function name
rousskov 2c108c1
fixup: Preserve the empty line at the end of the source file
rousskov 9128fca
fixup: Do not overexpose Instance.h users to SBuf details
rousskov f36ef80
fixup: Avoid unrelated cache_key type
rousskov 0d168a7
fixup: Undo out-of-scope code formatting improvement
rousskov 21e2706
fixup: Fix Debug::StopCacheLogUse() stubbing
rousskov b1bdc7e
Add Instance API stub
rousskov 1057873
fixup: Undo changes made unnecessary by the previous branch commit
rousskov 5247147
fixup: Do not increase name-generating code duplication
rousskov 9f56cae
fixup: Remove duplicated variable
rousskov bcc0413
fixup: Deduplicated risky code and removed magic constants
rousskov f0c7e9b
Reuse existing printing code instead of writing custom one
rousskov 005ecc1
Revert "Reuse existing printing code instead of writing custom one"
rousskov 69af79f
Separate hash chars from service_name
rousskov 27468e8
fixup: Use current master/v8 boilerplate
rousskov 8bc19f4
fixup: Mimic real instance name format when STUBbing
rousskov ec45b34
fixup: Minor polishing touches
rousskov 12da372
fixup: Missed "const"
rousskov 5a8e94b
fixup: Explain why we do not add a dash after the hash
rousskov 59a2ba1
fixup: Revert "Removed now-duped/obsolete CONTRIBUTORS entry"
rousskov a096b0a
Restore "Removed now-duped/obsolete CONTRIBUTORS entry"
rousskov 8407762
fixup: Avoid Squid qualifiers inside Squid
rousskov 8878c67
Merge branch 'master' into prevent-instance-shared-memory-segments-cl…
yadij 5c28433
Untested temporary workaround for testRock ENAMETOOLONG on MacOS
rousskov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,7 +54,7 @@ Thank you! | |
| Andrew Tridgell | ||
| Andrey <[email protected]> | ||
| Andrey Shorin <[email protected]> | ||
| ankor2023 <138755079+ankor2023@users.noreply.github.com> | ||
| Ankor <ankor2023@gmail.com> | ||
| Anonymous <[email protected]> | ||
| Anonymous <[email protected]> | ||
| Anonymous Pootle User | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /* | ||
| * Copyright (C) 1996-2025 The Squid Software Foundation and contributors | ||
| * | ||
| * Squid software is distributed under GPLv2+ license and includes | ||
| * contributions from numerous individuals and organizations. | ||
| * Please see the COPYING and CONTRIBUTORS files for details. | ||
| */ | ||
|
|
||
| #include "squid.h" | ||
| #include "Instance.h" | ||
| #include "sbuf/SBuf.h" | ||
|
|
||
| #define STUB_API "Instance.cc" | ||
| #include "tests/STUB.h" | ||
|
|
||
| void Instance::ThrowIfAlreadyRunning() STUB | ||
| void Instance::WriteOurPid() STUB | ||
| pid_t Instance::Other() STUB_RETVAL({}) | ||
| SBuf Instance::NamePrefix(const char *, const char *) STUB_RETVAL_NOP(SBuf("squid-STUB-0000")) | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.