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

leaking file descriptors #13

Open
hannesm opened this issue Aug 2, 2019 · 0 comments
Open

leaking file descriptors #13

hannesm opened this issue Aug 2, 2019 · 0 comments

Comments

@hannesm
Copy link
Owner

hannesm commented Aug 2, 2019

in unix/lwt/lwt-tls, the code snippets:

    let sock = Unix.(socket sd st 0) in ...
    try
      Unix.connect sock sa ;
      s := Connected sock;
      Ok ()
    with
    | Unix.Unix_error (e, f, _) -> ... Error err

are suspicious -- when connect fails, the sock has been allocated (by socket) but is never closed (only called at_exit and when send fails).

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

1 participant