Skip to content

Commit 17b6a76

Browse files
committed
imp: default config: disable debug, enable pipelining, increase socket-timeout
1 parent 3e95858 commit 17b6a76

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,10 @@ docker cp privoxy:/usr/local/etc/privoxy/CA/privoxy-ca-bundle.crt .
9191
- `filterfile privman-rules/user.filter` > Predefined privman aliases
9292
- `buffer-limit` > Increased to 25600KB (25MB)
9393
- `keep-alive-timeout` > Increased to 120 seconds
94-
- `socket-timeout` > Decreased to 30 seconds
94+
- `socket-timeout` > Decreased to 150 seconds
9595
- `max-client-connections` > Increased to 256
9696
- `listen-backlog` > Set to 128
9797
- `receive-buffer-size` > Increased to 32768 bytes
98-
- `tolerate-pipelining` > Disabled
9998

10099
## :bookmark: Points of Interest
101100

bin/privman.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ def _get_section_index(rules, section):
152152

153153
def _get_url_rule_index(rules, start, url):
154154
for index, rule in enumerate(rules[start:], start):
155-
print("IT: ", start, "----", index, " --- ", rule)
156155
if rule.strip() == url:
157156
return index
158157
if rule.startswith("{"):

docker-entrypoint.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,11 @@ if [ ! -e /usr/local/etc/privoxy/config ] || [ -z "$(ls -A /usr/local/etc/privox
1616
-e 's/^templdir .*/templdir \/usr\/local\/etc\/privoxy\/templates/' \
1717
-e '/^actionsfile user.action/a actionsfile privman-rules\/user.action\nactionsfile ab2p.system.action\nactionsfile ab2p.action' \
1818
-e '/^filterfile user.filter/a filterfile privman-rules\/user.filter\nfilterfile ab2p.system.filter\nfilterfile ab2p.filter' \
19-
-e 's/^#debug 1.*/debug 1/' \
20-
-e 's/^#debug 512.*/debug 512/' \
21-
-e 's/^#debug 1024.*/debug 1024/' \
22-
-e 's/^#debug 8192.*/debug 8192/' \
2319
-e 's/^listen-address .*/listen-address 0.0.0.0:'"${PRIVOXY_PORT}"'/' \
2420
-e 's/^enforce-blocks .*/#enforce-blocks 0/' \
2521
-e 's/^buffer-limit .*/buffer-limit 25600/' \
2622
-e 's/^keep-alive-timeout .*/keep-alive-timeout 120/' \
27-
-e 's/^tolerate-pipelining .*/tolerate-pipelining 0/' \
28-
-e 's/^socket-timeout .*/socket-timeout 30/' \
23+
-e 's/^socket-timeout .*/socket-timeout 150/' \
2924
-e 's/^#max-client-connections .*/max-client-connections 256/' \
3025
-e 's/^#listen-backlog .*/listen-backlog 128/' \
3126
-e 's/^#ca-directory .*/ca-directory \/usr\/local\/etc\/privoxy\/CA/' \

0 commit comments

Comments
 (0)