* 8sync/systems/websocket/server.scm (websocket-client-loop):
Prevent some errors where eof-objects appear as the frame by
the time we hit the cond.
(let ((frame (read-frame-maybe)))
(cond
;; EOF - port is closed.
(let ((frame (read-frame-maybe)))
(cond
;; EOF - port is closed.
+ ;; @@: Sometimes the eof object appears here as opposed to
+ ;; at lookahead, but I'm not sure why
+ ((or (not frame) (eof-object? frame))
(close-down))
;; Per section 5.4, control frames may appear interspersed
;; along with a fragmented message.
(close-down))
;; Per section 5.4, control frames may appear interspersed
;; along with a fragmented message.