Skip to content

Commit

Permalink
Add empty fn for doing things with the client and origin channels
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderEllis committed Nov 17, 2023
1 parent 1f4042a commit e7ca582
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -566,12 +566,17 @@ private void writeClientRequestToOrigin(final PooledConnection conn, Duration re
ch.flush();

// Get ready to read origin's response
syncClientAndOriginChannels(channelCtx.channel(), ch);
ch.read();

originConn = conn;
channelCtx.read();
}

protected void syncClientAndOriginChannels(Channel clientChannel, Channel originChannel) {
// Add override for custom syncing between client and origin channels.
}

protected OriginResponseReceiver getOriginResponseReceiver() {
return new OriginResponseReceiver(this);
}
Expand Down

0 comments on commit e7ca582

Please sign in to comment.