Catch all errors to keep the server up
This commit is contained in:
parent
543df72f39
commit
c552394e55
|
@ -103,11 +103,17 @@
|
||||||
(format *standard-output* "message received from ~A" sender)
|
(format *standard-output* "message received from ~A" sender)
|
||||||
(xmpp:message conn
|
(xmpp:message conn
|
||||||
(xmpp:from message)
|
(xmpp:from message)
|
||||||
(render-result (success-> message
|
(render-result
|
||||||
|
(handler-case
|
||||||
|
(success-> message
|
||||||
(xmpp:body)
|
(xmpp:body)
|
||||||
(decode-message)
|
(decode-message)
|
||||||
(dispatch-parse-message sender)
|
(dispatch-parse-message sender)
|
||||||
(handle-message))))))
|
(handle-message))
|
||||||
|
(error (e)
|
||||||
|
(format *error-output* "failed handling message from ~A: ~A"
|
||||||
|
sender e)
|
||||||
|
(make-error :msg "an unknown error occurred handling request")))))))
|
||||||
|
|
||||||
(let ((backplane nil))
|
(let ((backplane nil))
|
||||||
(defun backplane-connect (xmpp-host xmpp-username xmpp-password)
|
(defun backplane-connect (xmpp-host xmpp-username xmpp-password)
|
||||||
|
|
Loading…
Reference in New Issue