Skip to content

Commit

Permalink
Process events from all upstream channels.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Apr 27, 2024
1 parent b9a5f76 commit eb73c00
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions org.jgrapes.http/src/org/jgrapes/http/HttpConnector.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static class NetworkChannel extends ClassChannel {
public HttpConnector(Channel appChannel, Channel networkChannel,
Channel secureChannel) {
super(appChannel, ChannelReplacements.create()
.add(NetworkChannel.class, networkChannel));
.add(NetworkChannel.class, networkChannel, secureChannel));
this.netMainChannel = networkChannel;
this.netSecureChannel = secureChannel;
}
Expand All @@ -119,7 +119,10 @@ public HttpConnector(Channel appChannel, Channel networkChannel,
* the channel for network level I/O
*/
public HttpConnector(Channel appChannel, Channel networkChannel) {
this(appChannel, networkChannel, null);
super(appChannel, ChannelReplacements.create()
.add(NetworkChannel.class, networkChannel));
this.netMainChannel = networkChannel;
this.netSecureChannel = null;
}

/**
Expand Down

0 comments on commit eb73c00

Please sign in to comment.