mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 10:40:45 -08:00
close the connection when connection-id is invalid
This commit is contained in:
parent
3f1f908f6b
commit
a05ff40e97
1 changed files with 3 additions and 0 deletions
|
|
@ -214,6 +214,9 @@ the default answer. (Private)"
|
|||
c))))
|
||||
(setf (gethash id *connection-ids*) connection)
|
||||
(setf (gethash connection *connections*) id))
|
||||
(id
|
||||
(format t "Reconnection id ~A not found. Closing the connection.~%" id)
|
||||
(websocket-driver:close-connection connection)) ; Don't send the reason for better security.
|
||||
(t
|
||||
(setf id (random-hex-string))
|
||||
(setf (gethash connection *connections*) id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue