Skip to content

Exception escaping libev main loop in 5.9.1. #1067

@mefyl

Description

@mefyl

Since upgrading to 6.1.1, we often see this exception killing the main Lwt loop:

             IO error: Unix.Unix_error(Unix.ECONNRESET, "write", "")
             Raised by primitive operation at Lwt_engine.libev#iter in file "src/unix/lwt_engine.ml", line 189, characters 6-24
             Re-raised at Lwt_engine.libev#iter in file "src/unix/lwt_engine.ml", line 192, characters 6-15
             Called from Lwt_main.run.run_loop in file "src/unix/lwt_main.ml", line 36, characters 6-49
             Called from Lwt_main.run in file "src/unix/lwt_main.ml", line 106, characters 8-13
             Re-raised at Lwt_main.run in file "src/unix/lwt_main.ml", line 112, characters 4-13
             Called from Dune__exe__Main.command in file "bin/src/main.ml", line 214, characters 2-19
             Called from Cmdliner_term.app.(fun) in file "cmdliner_term.ml", line 24, characters 19-24
             Called from Cmdliner_term.app.(fun) in file "cmdliner_term.ml", line 22, characters 12-19
             Called from Cmdliner_term.term_result.(fun) in file "cmdliner_term.ml", line 48, characters 25-32
             Called from Cmdliner_eval.run_parser in file "cmdliner_eval.ml", line 35, characters 37-44

Am I correct in assuming that this should never happen and requires a fix in the libev backend? Given some pointer I'd be happy to try & fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions