mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-15 15:00:24 -08:00
Accept reconnection only if the connection-id is valid
This commit is contained in:
parent
e0aeae7690
commit
9315a0fee6
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ the default answer. (Private)"
|
|||
(defun handle-new-connection (connection id)
|
||||
"Handle new incoming websocket CONNECTIONS with ID from boot page. (Private)"
|
||||
(handler-case
|
||||
(cond (id
|
||||
(cond ((and id (gethash id *connection-data*))
|
||||
(format t "Reconnection id - ~A to ~A~%" id connection)
|
||||
(setf (gethash id *connection-ids*) connection)
|
||||
(setf (gethash connection *connections*) id))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue