Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HANDLER-CASE causes loops #51

Open
phoe opened this issue Apr 24, 2020 · 1 comment
Open

HANDLER-CASE causes loops #51

phoe opened this issue Apr 24, 2020 · 1 comment

Comments

@phoe
Copy link

phoe commented Apr 24, 2020

(let ((read-bytes (handler-case (read-sequence buf stream)
(error ()
;; Retry when I/O timeout error
(go retry)))))

This code catches all errors, not just I/O timeout errors, and therefore may cause infinite loops e.g. in case the stream argument is not a stream, or if read-sequence signals an end of file.

@adlai
Copy link

adlai commented Mar 10, 2021

Please link a context that includes an unambiguous source location; the github linking appears to be mistargeted [specifically: clicking 2d20d81 takes you to a patch that does not modify any of the lines in question].

Nevermind, it appears that this problem has existed in the code ab initio, and git tooling is uselessly helpful here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants