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

Added request number based multiplexing to subd #126

Closed
wants to merge 5 commits into from

Conversation

cdecker
Copy link
Member

@cdecker cdecker commented Mar 12, 2017

So far we were always using the issue order and type to match replies
to requests. This has two problems: two concurrent requests with the
same type may get mixed up, and there is no way of streaming a
multipart response to the requestor, since the request object was
being freed after receiving the first reply.

This is an attempt at fixing both, by introducing explicit request
numbering and flags to signal the end of a reply.

So far we were always using the issue order and type to match replies
to requests. This has two problems: two concurrent requests with the
same type may get mixed up, and there is no way of streaming a
multipart response to the requestor, since the request object was
being freed after receiving the first reply.

This is an attempt at fixing both, by introducing explicit request
numbering and flags to signal the end of a reply.
The opening daemon now uses the request/reply muxing. Also pushed the
message parsing of opening_open and opening_accept into the handling
functions.
@cdecker
Copy link
Member Author

cdecker commented Mar 12, 2017

There is a lingering make check-source failure due to the generated gen_subd_wire.c being added to the LIGHTNINGD_LIB_SRC variable, which is checked for inclusion order. @rustyrussell, do you have a good place to put this?

@cdecker cdecker mentioned this pull request Mar 13, 2017
9 tasks
@cdecker
Copy link
Member Author

cdecker commented Mar 23, 2017

Closing for now, it's out of date and we don't currently need it.

@cdecker cdecker closed this Mar 23, 2017
@cdecker cdecker deleted the subd-request-muxing branch May 6, 2017 15:11
@cdecker cdecker restored the subd-request-muxing branch May 6, 2017 15:11
@cdecker cdecker deleted the subd-request-muxing branch August 8, 2017 19:53
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.

None yet

2 participants