* released 1.1.2
* fixed a bug in buffer management where we could have a loop
between event_read() and process_{cli|srv} if R==BUFSIZE-MAXREWRITE.
=> implemented an adjustable buffer limit.
* fixed a bug : expiration of tasks in wait queue timeout is used again,
and running tasks are skipped.
* added some debug lines for accept events.
* send warnings for servers up/down.
diff --git a/examples/cfg b/examples/cfg
index 6aed525..423ca2c 100644
--- a/examples/cfg
+++ b/examples/cfg
@@ -7,11 +7,12 @@
#dispatch 127.0.0.1:31300
#dispatch 127.0.0.1:80
#dispatch 127.0.0.1:22
- server tuxlocal 127.0.0.1:80 cookie cookie1 check
- server tuxceleron 10.101.0.1:80 cookie cookie2 check
+ #server tuxlocal 127.0.0.1:80 cookie cookie1 check
+ #server tuxceleron 10.101.0.1:80 cookie cookie2 check
#server telnet 127.0.0.1:23
#server ssh 127.0.0.1:22
server local 127.0.0.1:3130 cookie cookie3 check
+ #server local 127.0.0.1:8001 cookie cookie3 check
#server local 127.0.0.1:3130
#server celeron 10.101.0.1:80 cookie srv1
#server celeron 10.101.0.1:31300
@@ -28,10 +29,39 @@
#rspadd Set-Cookie:\ mycookie=0;\ path=/
#rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
+listen proxy1 0.0.0.0:8001
+ mode http
+ #mode tcp
+ dispatch 127.0.0.1:80
+ #dispatch 127.0.0.1:31300
+ #dispatch 127.0.0.1:80
+ #dispatch 127.0.0.1:22
+ #server tuxlocal 127.0.0.1:80 cookie cookie1 check
+ #server tuxceleron 10.101.0.1:80 cookie cookie2 check
+ #server telnet 127.0.0.1:23
+ #server ssh 127.0.0.1:22
+ #server local 127.0.0.1:3130 cookie cookie3 check
+ #server local 127.0.0.1:3130
+ #server celeron 10.101.0.1:80 cookie srv1
+ #server celeron 10.101.0.1:31300
+ #server local 10.101.23.9:31300
+ contimeout 3000
+ clitimeout 150000
+ srvtimeout 150000
+ maxconn 60000
+ redispatch
+ retries 3
+ grace 3000
+ #rsprep ^Server.* Server:\ IIS
+ #rspdel ^Server.*
+ rspadd Set-Cookie:\ SERVERID=12345678;\ path=/
+ #rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2)
+
listen proxy1 0.0.0.0:3128
+ disabled
mode http
- cookie SERVERID indirect
- dispatch 127.0.0.1:8080
+ cookie SERVERID insert indirect
+ #dispatch 127.0.0.1:8080
server srv1 127.0.0.1:8080
#server srv2 192.168.12.3:8080
contimeout 3000
@@ -41,9 +71,11 @@
redispatch
retries 3
grace 3000
+ rspdel ^Via:.*
listen proxy2 0.0.0.0:3129
+ disabled
mode http
transparent
# dispatch 127.0.0.1:80