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

http2: refactoring heads up #16624

Closed
jasnell opened this issue Oct 30, 2017 · 10 comments
Closed

http2: refactoring heads up #16624

jasnell opened this issue Oct 30, 2017 · 10 comments
Labels
http2 Issues or PRs related to the http2 subsystem.

Comments

@jasnell
Copy link
Member

jasnell commented Oct 30, 2017

@mcollina @addaleax @apapirovski @sebdeckers @nodejs/http2 ... just a general heads up... I'm in the process of a sizable internal refactoring of the http2 C/C++ internals. It's a combination of long standing clean up, a number of necessary performance optimizations to reduce the number of memcpy's, and a cleanup of some of the internal buffering code. The internals are going to look quite a bit different by the time I'm done on this. It will likely take me a day or two.

@addaleax
Copy link
Member

btw, #16461 is pretty much good to go, I’ll kick off CI in a bit & land if it comes back green, so it might be helpful to work off that :)

@jasnell
Copy link
Member Author

jasnell commented Oct 30, 2017

Dang... forgot about that one and I'm already a fair bit down the road. Ok, let me know once that it landed and I'll rebase around it. Much of the changes I'm looking at will actually supersede much of that one as I am moving quite a few pieces around.

@addaleax
Copy link
Member

@jasnell done!

@addaleax addaleax added the http2 Issues or PRs related to the http2 subsystem. label Oct 30, 2017
@jasnell
Copy link
Member Author

jasnell commented Nov 1, 2017

After going through this for a few days, the changes I had in mind are just too significant of a change right now. There are also a few things that still need to be figured out in order to pull it off appropriately. I'm going to take a step back and figure out a more incremental approach.

@grantila
Copy link

grantila commented Nov 1, 2017

@jasnell keep #11552 in mind, please have a look at my comment about being able to detach http sockets. Since #16256, we can (re-)attach a socket to http1 or http2, but we might need to also provide a head buffer when constructing an Http2Session for "http1 upgrade" to work.

@apapirovski
Copy link
Member

apapirovski commented Nov 1, 2017

@jasnell Is there any other work in progress other than the PRs? I'm planning to take a look at some of the C++ code this week but don't want us to step on each other's toes.

@jasnell
Copy link
Member Author

jasnell commented Nov 2, 2017 via email

@addaleax
Copy link
Member

@jasnell What's the status on this one? :)

@jasnell
Copy link
Member Author

jasnell commented Nov 28, 2017

In progress. Decided to split over multiple PRs. I've opened several up to this point, preparing another now.

@jasnell
Copy link
Member Author

jasnell commented Jan 8, 2018

This was done.

@jasnell jasnell closed this as completed Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
http2 Issues or PRs related to the http2 subsystem.
Projects
None yet
Development

No branches or pull requests

4 participants