monkeyWie / proxyee

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

您好,我想问下 我把这工程集成到springboot中,代理就不能正常工作了 #268

Open Reabby opened 1 year ago

Reabby commented 1 year ago

您好,我想问下 我把这工程集成到springboot中,代理就不能正常工作了,浏览器里面收到的消息是无返回,这个有方法处理吗? 还想问下,代理服务器收到一个请求,怎么把这一个请求复制多个发出去,然后接到多个Response

monkeyWie commented 1 year ago

集成到springboot是不是没开一个线程专门给proxyee服务跑啊

Reabby commented 1 year ago

是专门的线程跑的 但从打印日志来看可能某些地方设置不对 DEBUG [nioEventLoopGroup-3-1][ i.n.h.l.LoggingHandler: 145]: [id: 0x12b88dbd, L:/[0:0:0:0:0:0:0:0]:9999] READ: [id: 0xeb2d81b0, L:/172.27.77.138:9999 - R:/172.27.77.138:63885] ===> log:145 DEBUG [nioEventLoopGroup-3-1][ i.n.h.l.LoggingHandler: 145]: [id: 0x12b88dbd, L:/[0:0:0:0:0:0:0:0]:9999] READ COMPLETE ===> log:145 DEBUG [nioEventLoopGroup-3-1][ i.n.h.l.LoggingHandler: 145]: [id: 0x12b88dbd, L:/[0:0:0:0:0:0:0:0]:9999] READ: [id: 0x4a2752cc, L:/172.27.77.138:9999 - R:/172.27.77.138:63891] ===> log:145 DEBUG [nioEventLoopGroup-3-1][ i.n.h.l.LoggingHandler: 145]: [id: 0x12b88dbd, L:/[0:0:0:0:0:0:0:0]:9999] READ COMPLETE ===> log:145 DEBUG [nioEventLoopGroup-3-1][ i.n.h.l.LoggingHandler: 145]: [id: 0x12b88dbd, L:/[0:0:0:0:0:0:0:0]:9999] READ: [id: 0x799d19e2, L:/172.27.77.138:9999 - R:/172.27.77.138:63893] ===> log:145 DEBUG [nioEventLoopGroup-3-1][ i.n.h.l.LoggingHandler: 145]: [id: 0x12b88dbd, L:/[0:0:0:0:0:0:0:0]:9999] READ COMPLETE ===> log:145 DEBUG [nioEventLoopGroup-3-1][ i.n.h.l.LoggingHandler: 145]: [id: 0x12b88dbd, L:/[0:0:0:0:0:0:0:0]:9999] READ: [id: 0x29c602ae, L:/172.27.77.138:9999 - R:/172.27.77.138:63908] ===> log:145 DEBUG [nioEventLoopGroup-3-1][ i.n.h.l.LoggingHandler: 145]: [id: 0x12b88dbd, L:/[0:0:0:0:0:0:0:0]:9999] READ COMPLETE ===> log:145 DEBUG [nioEventLoopGroup-3-1][ i.n.h.l.LoggingHandler: 145]: [id: 0x12b88dbd, L:/[0:0:0:0:0:0:0:0]:9999] READ: [id: 0x686eff73, L:/172.27.77.138:9999 - R:/172.27.77.138:63927] ===> log:145 DEBUG [nioEventLoopGroup-3-1][ i.n.h.l.LoggingHandler: 145]: [id: 0x12b88dbd, L:/[0:0:0:0:0:0:0:0]:9999] READ COMPLETE ===> log:145 DEBUG [nioEventLoopGroup-3-1][ i.n.h.l.LoggingHandler: 145]: [id: 0x12b88dbd, L:/[0:0:0:0:0:0:0:0]:9999] READ: [id: 0x99549952, L:/172.27.77.138:9999 - R:/172.27.77.138:63930] ===> log:145 DEBUG [nioEventLoopGroup-3-1][ i.n.h.l.LoggingHandler: 145]: [id: 0x12b88dbd, L:/[0:0:0:0:0:0:0:0]:9999] READ COMPLETE ===> log:145

Reabby commented 1 year ago

好像没有像单独运行的时候会产生多nioEventLoopGroup线程,我再试试是不是其他功能引入影响到了proxyee, 比如引入了shiro等导致的 我新创建一个springboot工程,只引入proxyee是没什么问题的