monkeyWie / proxyee

HTTP proxy server,support HTTPS&websocket.MITM impl,intercept and tamper HTTPS traffic.
MIT License
1.5k stars 566 forks source link

本地局域网代理访问会出现net::ERR_CONTENT_LENGTH_MISMATCH的问题 #212

Open DevilMayCry2333 opened 2 years ago

DevilMayCry2333 commented 2 years ago

代理地址访问某个特定的url ,比如http://192.168.1.111:6888/portal/res/dist/portal-ui.js?v=8.6.1.7 的时候,只传输了一半的字节数就中断了连接。

monkeyWie commented 2 years ago

是什么浏览器啊

DevilMayCry2333 commented 2 years ago

是什么浏览器啊

Chrome 97.0

monkeyWie commented 2 years ago

是稳定复现吗,帮忙提供下复现的代码

DevilMayCry2333 commented 2 years ago

是稳定复现吗,帮忙提供下复现的代码

https://pastebin.ubuntu.com/p/3Q8SGXB697/ , 只有访问192.168.1.111:6888不行,其它的可以,使用test.txt 1mb的文件测试,复现了这个问题,标头有connection: close

monkeyWie commented 2 years ago

把这行代码去掉试试:clientChannel.writeAndFlush(httpResponse).addListener(ChannelFutureListener.CLOSE);

DevilMayCry2333 commented 2 years ago

把这行代码去掉试试:clientChannel.writeAndFlush(httpResponse).addListener(ChannelFutureListener.CLOSE);

试了下,还是一样的无法下载

monkeyWie commented 2 years ago

我用这个代码没有复现啊: image

还是说一定要访问内网的服务?

DevilMayCry2333 commented 2 years ago

我用这个代码没有复现啊: image

还是说一定要访问内网的服务?

访问百度是可以,但是访问内网不行

monkeyWie commented 2 years ago

内网是用什么服务跑的,我试试看

DevilMayCry2333 commented 2 years ago

内网是用什么服务跑的,我试试看

金蝶EAS Cloud

DevilMayCry2333 commented 2 years ago

怎么样,可以复现吗

monkeyWie commented 1 year ago

看看这个pr能解决问题吗,把headerLength调大点