Levi

Results 403 comments of Levi
trafficstars

Do you want to use a specific ethernet card when the proxy server sends requests? You can do it directly by configuring the routing table.

可以参考下:[InterceptFullResponseProxyServer](https://github.com/monkeyWie/proxyee/blob/master/src/test/java/com/github/monkeywie/proxyee/InterceptFullResponseProxyServer.java) 默认情况下netty的HttpResponse Content是以流式接收的,所以会有多个response的情况。

最好是能提供下复现代码和步骤

因为http会存在tcp复用的情况,同一个tcp连接会有多个请求响应是正常的,你可以特殊处理下,比如在每次请求进来都标记一下是新的请求

Pipeline是跟着tcp连接走的,也就是说每次创建新的tcp连接的时候才创建pipeline,现在你那边一个连接收到多个`请求+响应`业务处理上会有啥问题吗

这样试试: ``` pipeline.addLast(new HttpProxyIntercept() { private Map requestUsedTimeMap = new HashMap(); @Override public void beforeRequest(Channel clientChannel, HttpRequest httpRequest, HttpProxyInterceptPipeline pipeline) throws Exception { requestUsedTimeMap.put(httpRequest, System.currentTimeMillis()); } @Override public void afterResponse(Channel...

有用FullHttpProxyIntercept之类的吗

不要使用FullResponseIntercept就行了,因为要完整解码响应的话肯定是得拿到全部的报文才行。 --- Just don't use FullResponseIntercept, because if you want to fully decode the response, you must get all the packets.

理论上是可以的,但是需要自己实现一个类似FullResponseIntercept的拦截器,不过如果只是做记录的话很简单的,把每次过来的Content缓存住,判断是最后一个Content的时候再解码处理