Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3764766
D825.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
655 B
Referenced Files
None
Subscribers
None
D825.diff
View Options
diff --git a/Wearg/Broker.tcl b/Wearg/Broker.tcl
--- a/Wearg/Broker.tcl
+++ b/Wearg/Broker.tcl
@@ -77,6 +77,13 @@
proc recover_from_broker_error {error} {
if {$error == "Child process signal received."} {
putdebug "Ignoring SIGCHLD"
+ } elseif {[string match "*server connection error 320*CONNECTION_FORCED*" $error]} {
+ # If the session doesn't allow the bot to process
+ # messages, we can ask the server to disconnect it.
+ # Log the error message, as management plugin
+ # allows to send a custom reason.
+ putdebug "$error / Trying to reconnect..."
+ connect
} elseif {$error == "Not connected."} {
connect
} else {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 08:10 (17 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257554
Default Alt Text
D825.diff (655 B)
Attached To
Mode
D825: Recover when the connection is closed via RabbitMQ management plugin
Attached
Detach File
Event Timeline
Log In to Comment