Skip to content

Initializing a channel's pipeline in a ChannelFactory #13687

Answered by chrisvest
jon-signal asked this question in Q&A
Discussion options

You must be logged in to vote

The ChannelFactory is not a good place to initialise channels, because you'll be modifying the channel before it's registered with the event loop. If any part of the initialisation then wants to do delayed or scheduled work, it might break. You might be interested in something like #13565 as an alternative path forward. Those callbacks get a chance to modify the pipeline after its normal initialisation.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jon-signal
Comment options

@chrisvest
Comment options

@jon-signal
Comment options

Answer selected by jon-signal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants