Skip to content

CP-36097 ocaml-conduit patch#560

Merged
lippirk merged 2 commits into
xapi-project:masterfrom
lippirk:cp36097
Jun 1, 2021
Merged

CP-36097 ocaml-conduit patch#560
lippirk merged 2 commits into
xapi-project:masterfrom
lippirk:cp36097

Conversation

@lippirk
Copy link
Copy Markdown

@lippirk lippirk commented May 14, 2021

Motivation for the patch is so that we can connect to a particular hostname/IP, but specify something else to verify against (SNI)


+module Overrides : sig
+ module Client : sig
+ type t = { ctx : [ `Ssl_not_available ] option ; hostname : string option }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is using polymorphic variants. Is it not possible regular variants which create better error messages?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I believe it needs to be this otherwise it won't compile (the library uses polymorphic variants everywhere)

Copy link
Copy Markdown
Member

@psafont psafont left a comment

Choose a reason for hiding this comment

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

The version updates look good to me. The patches are applied to all the packages related to the repository.

I'm not an expert in conduit, the changes in there looked sensible to me.

I wanted to note that the patch doesn't seem to block us from using conduit 4.0

I think it might be worth pinging the conduit maintainers to see their thoughts on the approach.

Ben Anson added 2 commits May 24, 2021 10:38
Signed-off-by: Ben Anson <ben.anson@citrix.com>
Signed-off-by: Ben Anson <ben.anson@citrix.com>
@lindig
Copy link
Copy Markdown
Collaborator

lindig commented Jun 1, 2021

Can we merge this?

@lippirk lippirk merged commit aa25da5 into xapi-project:master Jun 1, 2021
@mseri
Copy link
Copy Markdown
Contributor

mseri commented Jun 1, 2021

Just a curiosity, have you tried to see if there is a chance to get this feature upstreamed in coduit/cohttp for the 5+ releases?

@lippirk
Copy link
Copy Markdown
Author

lippirk commented Jun 1, 2021

Just a curiosity, have you tried to see if there is a chance to get this feature upstreamed in coduit/cohttp for the 5+ releases?

Hi there Marcello - I opened a PR upstream a while ago mirage/ocaml-conduit#390. Would it be sufficient to get it into master, or would I have to do each of the backports myself?

@mseri
Copy link
Copy Markdown
Contributor

mseri commented Jun 1, 2021

That's good, at least to try and start some discussions. Next time we have the cohttp meeting I will add it to the list of things to discuss

@lippirk
Copy link
Copy Markdown
Author

lippirk commented Jun 1, 2021

Thanks! I'll tidy up the upstream PR a bit to make sure it's in a fit state

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.

4 participants