|
@@ -34,6 +34,9 @@ Olle E. Johansson
|
|
4. Event routes
|
|
4. Event routes
|
|
|
|
|
|
4.1. tcp:closed
|
|
4.1. tcp:closed
|
|
|
|
+ 4.2. tcp:timeout
|
|
|
|
+ 4.3. tcp:reset
|
|
|
|
+ 4.4. Example
|
|
|
|
|
|
List of Examples
|
|
List of Examples
|
|
|
|
|
|
@@ -66,6 +69,9 @@ Chapter 1. Admin Guide
|
|
4. Event routes
|
|
4. Event routes
|
|
|
|
|
|
4.1. tcp:closed
|
|
4.1. tcp:closed
|
|
|
|
+ 4.2. tcp:timeout
|
|
|
|
+ 4.3. tcp:reset
|
|
|
|
+ 4.4. Example
|
|
|
|
|
|
1. Overview
|
|
1. Overview
|
|
|
|
|
|
@@ -289,18 +295,43 @@ event_route[tcp:closed] {
|
|
4. Event routes
|
|
4. Event routes
|
|
|
|
|
|
4.1. tcp:closed
|
|
4.1. tcp:closed
|
|
|
|
+ 4.2. tcp:timeout
|
|
|
|
+ 4.3. tcp:reset
|
|
|
|
+ 4.4. Example
|
|
|
|
+
|
|
|
|
+ The 3 following routes are called when a socket is closed.
|
|
|
|
+
|
|
|
|
+ The corresponding $conid , $Ri , $Rp , $si , $sp and $proto variable
|
|
|
|
+ will be available in the event routes.
|
|
|
|
+
|
|
|
|
+ Whether these routes are always called, never, or on a per socket basis
|
|
|
|
+ is controlled by the closed_event parameter.
|
|
|
|
|
|
4.1. tcp:closed
|
|
4.1. tcp:closed
|
|
|
|
|
|
- This route is called when a socket is closed by the remote party, or
|
|
|
|
- reset, or timeout. The corresponding $conid variable will be available
|
|
|
|
- in the event route.
|
|
|
|
|
|
+ Called for each "normal" TCP socket closure by the other side
|
|
|
|
+ (FIN,ACK).
|
|
|
|
+
|
|
|
|
+4.2. tcp:timeout
|
|
|
|
+
|
|
|
|
+ Called for connection timeouts (unanswered keepalives).
|
|
|
|
+
|
|
|
|
+4.3. tcp:reset
|
|
|
|
|
|
- Whether this route is always called, never, or on a per socket basis is
|
|
|
|
- controlled by the closed_event parameter.
|
|
|
|
|
|
+ Called if the connection is reset by peer (RST).
|
|
|
|
+
|
|
|
|
+4.4. Example
|
|
|
|
|
|
...
|
|
...
|
|
event_route[tcp:closed] {
|
|
event_route[tcp:closed] {
|
|
- xlog("L_INFO", "TCP connection closed ($conid)\n");
|
|
|
|
|
|
+ xlog("L_INFO", "$proto connection closed ($conid)\n");
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+event_route[tcp:timeout] {
|
|
|
|
+ xlog("L_INFO", "$proto connection timed out ($conid)\n");
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+event_route[tcp:reset] {
|
|
|
|
+ xlog("L_INFO", "$proto connection reset by peer ($conid)\n");
|
|
}
|
|
}
|
|
...
|
|
...
|