Prevent crashes from setting connection data items on a closed connection

This commit is contained in:
David Botton 2022-05-23 13:32:55 -04:00
parent 3ba39d217c
commit 617c86c71b

View file

@ -511,7 +511,8 @@ an application share per connection the same queue of serialized events."
(defmethod set-connection-data-item ((obj clog-obj) item-name value)
(bordeaux-threads:with-lock-held ((connection-data-mutex obj))
(setf (gethash item-name (connection-data obj)) value))
(ignore-errors
(setf (gethash item-name (connection-data obj)) value)))
value)
(defsetf connection-data-item set-connection-data-item)