Skip to content

Commit 072235d

Browse files
committed
Changes for AsyncHttpClient#229.
- Override onFilterChainChanged to be a no-op to prevent the optimized server-side SSLFilter from being inserted into the chain.
1 parent 84d483d commit 072235d

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

providers/grizzly/src/main/java/com/ning/http/client/providers/grizzly/GrizzlyAsyncHttpProvider.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
import org.glassfish.grizzly.attributes.Attribute;
6565
import org.glassfish.grizzly.attributes.AttributeStorage;
6666
import org.glassfish.grizzly.filterchain.BaseFilter;
67+
import org.glassfish.grizzly.filterchain.FilterChain;
6768
import org.glassfish.grizzly.filterchain.FilterChainBuilder;
6869
import org.glassfish.grizzly.filterchain.FilterChainContext;
6970
import org.glassfish.grizzly.filterchain.FilterChainEvent;
@@ -2671,6 +2672,10 @@ public NextAction handleWrite(FilterChainContext ctx) throws IOException {
26712672

26722673
}
26732674

2675+
@Override
2676+
public void onFilterChainChanged(FilterChain filterChain) {
2677+
// no-op
2678+
}
26742679

26752680
// ----------------------------------------------------- Private Methods
26762681

providers/grizzly/src/test/java/com/ning/http/client/providers/grizzly/GrizzlyProxyTunnelingTest.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,4 @@ public AsyncHttpClient getAsyncHttpClient(AsyncHttpClientConfig config) {
3333
return new AsyncHttpClient(new GrizzlyAsyncHttpProvider(config), config);
3434
}
3535

36-
@Test(enabled=false)
37-
@Override
38-
public void testRequestProxy() throws IOException, InterruptedException, ExecutionException, TimeoutException {
39-
super.testRequestProxy();
40-
}
41-
42-
@Test(enabled=false)
43-
@Override
44-
public void testConfigProxy() throws IOException, InterruptedException, ExecutionException, TimeoutException {
45-
super.testConfigProxy();
46-
}
47-
48-
@Test(enabled=false)
49-
@Override
50-
public void testSimpleAHCConfigProxy() throws IOException, InterruptedException, ExecutionException, TimeoutException {
51-
super.testSimpleAHCConfigProxy();
52-
}
5336
}

0 commit comments

Comments
 (0)