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

http: replace llhttp with milo #6

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

http: replace llhttp with milo #6

wants to merge 1 commit into from

Conversation

ShogunPanda
Copy link
Owner

  • Replace llhttp with milo
  • Dropped HTTP/1.0 support
  • Removed --insecure-http-parser as it is no longer applicable.

@@ -800,6 +804,8 @@
'common.gypi',
],

'libraries': ['../../deps/milo/libmilo.a'],
Copy link

Choose a reason for hiding this comment

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

There is something wrong with the build step. You have committed a .a binary file and you are referring to it here. Binary files should not be committed to the repo as they are not portable across our target environments.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Ignore that for now. That part is completely to be reworked and so far I only tried to make it build on my arch (MacOS M2).

Anyway, Milo is written in Rust.
In theory, given we install the Rust toolchain in our target environment, we could build and include it locally.
But at the end of the day it will result in a .a file that will be bundled inside Node.

My original intention instead is to build and release Milo on GH for each platform Node supports. Then configure the Node build system to include the right file.

Needless to say, Milo is also an attempt to see if this approach works, which would open the room for similar inclusions in Node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants