Error ("Exception raised to [Monitor.try_with] that already returned.""This error was captured by a default handler in [Async.Log]."(exn(monitor.ml.Error("attempt to use closed writer"((file_descr 138)(info(socket((listening_on((file_descr 12)(info((type_ tcp)(listening_on 0.0.0.0:1923)))(kind(Socket Passive))(supports_nonblock true)(have_set_nonblock true)(state(Open Empty))(watching((read(Watch_once Empty))(write Not_watching)))(watching_has_changed false)(num_active_syscalls 1)(close_finished Empty)))(client 127.0.0.1:56286))))(kind(Socket Active))))("Raised at Base__Error.raise in file \"src/error.ml\" (inlined), line 8, characters 14-30""Called from Base__Error.raise_s in file \"src/error.ml\", line 9, characters 19-40""Called from Async_unix__Writer0.write in file \"src/writer0.ml\" (inlined), line 1549, characters 2-20""Called from Cohttp_async__Io.write.(fun) in file \"cohttp-async/src/io.ml\", line 96, characters 6-25""Called from Cohttp__Response.Make.write_header in file \"cohttp/src/response.ml\", line 107, characters 4-137""Called from Cohttp__Response.Make.write in file \"cohttp/src/response.ml\", line 132, characters 4-23""Called from Cohttp_async__Server.handle_client.(fun) in file \"cohttp-async/src/server.ml\", line 100, characters 12-119""Called from Async_kernel__Pipe.iter.(fun) in file \"src/pipe.ml\", line 825, characters 4-56""Called from Async_kernel__Job_queue.run_job in file \"src/job_queue.ml\" (inlined), line 128, characters 2-5""Called from Async_kernel__Job_queue.run_jobs in file \"src/job_queue.ml\", line 169, characters 6-47""Caught by monitor Cohttp_async.Server.collect_errors"))))
It closed the fd then wrote to it
Two bugs:
Stack trace