This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Move server command handling out of TCP protocol #7187
Move server command handling out of TCP protocol #7187
Changes from 11 commits
e6c25e0
cadb3f5
dd93e91
1d00a74
525a47d
8a6a680
ad2a80a
8d81fd2
984c959
9cc5698
3653d03
ad2beda
27e4d2b
2190027
7b2af21
ffdf38c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does this "if we register a replication server endpoint" relate to this bit of code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, you'd always do something like
listen_tcp("localhost", 80, ReplicationStreamProtocolFactory(hs))
or whatever. Its not a fantastic place to put it, but not sure where else would be a good placeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The subtlety here is that we only really want to start this if we configure a replication listener. I guess we could put this in
HomeServer.setup
and then check if we have a replication listener? But not sure that is a better place.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok so what you're saying is:
which is fine, but please can you make the comment say so? :)