Skip to content

compatibility with lwt.6#55

Open
raphael-proust wants to merge 7 commits intomasterfrom
lwt6-compat
Open

compatibility with lwt.6#55
raphael-proust wants to merge 7 commits intomasterfrom
lwt6-compat

Conversation

@raphael-proust
Copy link
Contributor

note that bc lwt had some significant changes in version 6, the version after this PR is not compatible with lwt<6. we might want to do something special like keeping a separate branch for lwt<6 support with distinct releases and such. or not? what do you think?

@raphael-proust
Copy link
Contributor Author

can't build until ocaml/opam-repository#29421 is merged

and poll is guaranteed to be available without the fd limitation.
*)
let () =
if not (Lwt_config._HAVE_LIBEV && Lwt_config.libev_default) then begin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this method not available in lwt 6?

Copy link
Contributor

@rr0gi rr0gi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is lwt_engine change required?

end
| Lwt_engine.Engine_id__poll -> ()
| lwteng ->
eprintfn "Unknown Lwt engine (%s) in use, leaving as is" Obj.Extension_constructor.(name (of_val lwteng));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see Obj i suspect
there is no name function to use?
but then anw i would rather emit log for non-default behaviour branch (ie select=>poll) and do not log anything in other branches (ie here)

devkit.opam Outdated
"curl_lwt"
"pcre2" {>= "8.0.3"}
"trace" {>= "0.4"}
"trace" {>= "0.10" & < "0.11"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the upper bound?

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

Successfully merging this pull request may close these issues.

2 participants