v2fly / v2ray-core

A platform for building proxies to bypass network restrictions.
https://v2fly.org
MIT License
29.05k stars 4.59k forks source link

v4.39.2 在 h2 模式下运行一段时间后开始无法连接到远端服务器 #1056

Closed lijinglin3 closed 2 years ago

lijinglin3 commented 3 years ago

问题同 https://github.com/v2fly/v2ray-core/issues/772 ,这个问题上次 revert 之后又被改了回来

IRN-Kawakaze commented 3 years ago

客户端/服务器版本:v4.39.2,grpc 存在同样的问题,断连后客户端不会自动恢复,必须手动重启客户端。

复现方法: 1、配置nginx+tls+grpc+vmess,连接状态下重启服务器,待服务器启动完毕,客户端依然无法联网。

客户端/服务器一起切换到v4.38.3后该问题消失。

lijinglin3 commented 3 years ago

看起来都是 support chain proxy 引入的问题 https://github.com/v2fly/v2ray-core/commit/7b721e1a6f8d0dc678cd87084d5564baab289496 https://github.com/v2fly/v2ray-core/commit/1038823ee95d91d63b0096830717dcf33f5820c1

xiaokangwang commented 3 years ago

看一下有没有被 https://github.com/v2fly/v2ray-core/commit/861d6be19a16136178245af30a6f41199593b0d2 修复

lijinglin3 commented 3 years ago

看一下有没有被 861d6be 修复

测试了一天,还是会有问题,只不过从之前的几十分钟后开始不能使用变成了现在的几个小时后不能使用

xiaokangwang commented 3 years ago

不能用的提示是什么呢?

lijinglin3 commented 3 years ago

由于我本地重新编译了,所以在香港服务器上部署了一个新的来测试,如下是操作的步骤和输出

~ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── lijinglin@hk L 0.02 RAM 0.35G SWP 0B 16:21:53
❯ curl http://www.google.com -vvv
*   Trying 172.217.26.132:80...
* Connected to www.google.com (172.217.26.132) port 80 (#0)
> GET / HTTP/1.1
> Host: www.google.com
> User-Agent: curl/7.74.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Fri, 25 Jun 2021 08:21:59 GMT
< Expires: -1
< Cache-Control: private, max-age=0
< Content-Type: text/html; charset=ISO-8859-1
< P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
< Server: gws
< X-XSS-Protection: 0
< X-Frame-Options: SAMEORIGIN
< Set-Cookie: 1P_JAR=2021-06-25-08; expires=Sun, 25-Jul-2021 08:21:59 GMT; path=/; domain=.google.com; Secure
< Set-Cookie: NID=217=IhXi776zCswhGljLF-p6Wl7Q1VfISaibbVPgycxKpGyaOi6NLTb97fqY_JOchDyGiBPdlbySCoj3jwzwTe51IUR2hn4MLR64xHnE5XJopXcHCXRgk4RzLXwDaCic_o00Qf08glvOqP6VxSdLudtr3_Yifgp-u3e2V7U5dosKKLg; expires=Sat, 25-Dec-2021 08:21:59 GMT; path=/; domain=.google.com; HttpOnly
< Accept-Ranges: none
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
<
<!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="zh-HK"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><meta content="/images/branding/googleg/1x/googleg_standard_color_128dp.png" itemprop="image"><title>Google</title><script nonce="hfg6Zb4qrit5t9t+2VorvA==">(function(){window.google={kEI:'J5LVYNbNBeG0mgenvKeIDg',kEXPI:'0,772215,1,530320,56873,954,5104,207,2415,2389,2316,383,246,5,1353,5251,16232,10,1106274,1197733,549,44,328941,51223,16115,17444,11240,17572,1325,3534,1361,9290,3025,17584,4998,13228,3847,10623,14527,4516,2778,919,5081,1595,1277,2212,530,149,1103,840,2196,4101,3514,606,2023,1777,520,1704,4641,8325,3227,1989,858,5,5599,6755,5096,7876,3749,1180,108,1456,1951,908,2,941,2614,2397,10745,3,346,230,6459,149,5990,7985,4,1528,2304,1236,10487,2014,4067,14308,2658,4164,78,2459,656,30,13628,2305,638,7080,10535,665,2521,3276,2560,2047,2047,2256,883,5,908,3,3541,1,11942,2321,447,316,1498,283,38,874,5992,6754,432,552,4788,2,1394,2806,1715,2,3057,726,2,1289,521,2,1,3,2808,815,1996,663,798,1341,1128,2,801,627,519,386,1453,1017,2331,1274,931,605,2636,406,2095,537,1065,172,1544,2043,1807,158,2,363,677,1160,1269,1802,1624,2,2003,503,898,39,757,183,271,3,1124,176,4024,794,355,2,311,204,3,37,80,30,1457,784,387,1012,762,868,56,13,1448,320,1739,266,62,445,303,39,586,241,1388,1407,2,6,29,2,6,42,62,2,154,1,1525,612,109,232,308,17,488,1182,5,174,131,1339,642,252,335,781,469,629,468,5625322,189,5,32,63,155,2,59,32,5996258,519,46,79,2799249,1323,882,444,1,2,80,1,1796,1,9,2,2551,1,748,141,795,563,1,4265,1,1,2,1331,3299,843,2609,155,17,13,72,139,4,2,20,2,169,13,19,46,5,39,96,548,29,2,2,1,2,1,2,2,7,4,1,2,2,2,2,2,2,353,513,199,33,2,2,2,2,2,14,15,2,18,13,16,1,23955042,2857453,1152820,268,1835,26467,2,192,7,1882,293,3,120,3,6,338,3,1011,828,500,75,1780,33',kBL:'agTH'};google.sn='webhp';google.kHL='zh-HK';})();(function(){
var f=this||self;var h,k=[];function l(a){for(var b;a&&(!a.getAttribute||!(b=a.getAttribute("eid")));)a=a.parentNode;return b||h}function m(a){for(var b=null;a&&(!a.getAttribute||!(b=a.getAttribute("leid")));)a=a.parentNode;return b}
function n(a,b,c,d,g){var e="";c||-1!==b.search("&ei=")||(e="&ei="+l(d),-1===b.search("&lei=")&&(d=m(d))&&(e+="&lei="+d));d="";!c&&f._cshid&&-1===b.search("&cshid=")&&"slh"!==a&&(d="&cshid="+f._cshid);c=c||"/"+(g||"gen_204")+"?atyp=i&ct="+a+"&cad="+b+e+"&zx="+Date.now()+d;/^http:/i.test(c)&&"https:"===window.location.protocol&&(google.ml&&google.ml(Error("a"),!1,{src:c,glmm:1}),c="");return c};h=google.kEI;google.getEI=l;google.getLEI=m;google.ml=function(){return null};google.log=function(a,b,c,d,g){if(c=n(a,b,c,d,g)){a=new Image;var e=k.length;k[e]=a;a.onerror=a.onload=a.onabort=function(){delete k[e]};a.src=c}};google.logUrl=n;}).call(this);(function(){
google.y={};google.sy=[];google.x=function(a,b){if(a)var c=a.id;else{do c=Math.random();while(google.y[c])}google.y[c]=[a,b];return!1};google.sx=function(a){google.sy.push(a)};google.lm=[];google.plm=function(a){google.lm.push.apply(google.lm,a)};google.lq=[];google.load=function(a,b,c){google.lq.push([[a],b,c])};google.loadAll=function(a,b){google.lq.push([a,b])};google.bx=!1;google.lx=function(){};}).call(this);google.f={};(function(){
document.documentElement.addEventListener("submit",function(b){var a;if(a=b.target){var c=a.getAttribute("data-submitfalse");a="1"==c||"q"==c&&!a.elements.q.value?!0:!1}else a=!1;a&&(b.preventDefault(),b.stopPropagation())},!0);document.documentElement.addEventListener("click",function(b){var a;a:{for(a=b.target;a&&a!=document.documentElement;a=a.parentElement)if("A"==a.tagName){a="1"==a.getAttribute("data-nohref");break a}a=!1}a&&b.preventDefault()},!0);}).call(this);</script><style>#gbar,#guser{font-size:13px;padding-top:1px !important;}#gbar{height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}@media all{.gb1{height:22px;margin-right:.5em;vertical-align:top}#gbar{float:left}}a.gb1,a.gb4{text-decoration:underline !important}a.gb1,a.gb4{color:#00c !important}.gbi .gb4{color:#dd8e27 !important}.gbf .gb4{color:#900 !important}
</style><style>body,td,a,p,.h{font-family:arial,sans-serif}body{margin:0;overflow-y:scroll}#gog{padding:3px 8px 0}td{line-height:.8em}.gac_m td{line-height:17px}form{margin-bottom:20px}.h{color:#1558d6}em{color:#c5221f;font-style:normal;font-weight:normal}a em{text-decoration:underline}.lst{height:25px;width:496px}.gsfi,.lst{font:18px arial,sans-serif}.gsfs{font:17px arial,sans-serif}.ds{display:inline-box;display:inline-block;margin:3px 0 4px;margin-left:4px}input{font-family:inherit}body{background:#fff;color:#000}a{color:#4b11a8;text-decoration:none}a:hover,a:active{text-decoration:underline}.fl a{color:#1558d6}a:visited{color:#4b11a8}.sblc{padding-top:5px}.sblc a{display:block;margin:2px 0;margin-left:13px;font-size:11px}.lsbb{background:#f8f9fa;border:solid 1px;border-color:#dadce0 #70757a #70757a #dadce0;height:30px}.lsbb{display:block}#WqQANb a{display:inline-block;margin:0 12px}.lsb{background:url(/images/nav_logo229.png) 0 -261px repeat-x;border:none;color:#000;cursor:pointer;height:30px;margin:0;outline:0;font:15px arial,sans-serif;vertical-align:top}.lsb:active{background:#dadce0}.lst:focus{outline:none}</style><script nonce="hfg6Zb4qrit5t9t+2VorvA=="></script></head><body bgcolor="#fff"><script nonce="hfg6Zb4qrit5t9t+2VorvA==">(function(){var src='/images/nav_logo229.png';var iesg=false;document.body.onload = function(){window.n && window.n();if (document.images){new Image().src=src;}
if (!iesg){document.f&&document.f.q.focus();document.gbqf&&document.gbqf.q.focus();}
}
})();</script><div id="mngb"><div id=gbar><nobr><b class=gb1>&#25628;&#23563;</b> <a class=gb1 href="http://www.google.com.hk/imghp?hl=zh-TW&tab=wi">&#22294;&#29255;</a> <a class=gb1 href="http://maps.google.com.hk/maps?hl=zh-TW&tab=wl">&#22320;&#22294;</a> <a class=gb1 href="https://play.google.com/?hl=zh-TW&tab=w8">Play</a> <a class=gb1 href="http://www.youtube.com/?gl=HK&tab=w1">YouTube</a> <a class=gb1 href="https://news.google.com/?tab=wn">&#26032;&#32862;</a> <a class=gb1 href="https://mail.google.com/mail/?tab=wm">Gmail</a> <a class=gb1 href="https://drive.google.com/?tab=wo">&#38642;&#31471;&#30828;&#30879;</a> <a class=gb1 style="text-decoration:none" href="https://www.google.com.hk/intl/zh-TW/about/products?tab=wh"><u>&#26356;&#22810;</u> &raquo;</a></nobr></div><div id=guser width=100%><nobr><span id=gbn class=gbi></span><span id=gbf class=gbf></span><span id=gbe></span><a href="http://www.google.com.hk/history/optout?hl=zh-TW" class=gb4>&#32178;&#38913;&#35352;&#37636;</a> | <a  href="/preferences?hl=zh-TW" class=gb4>&#35373;&#23450;</a> | <a target=_top id=gb_70 href="https://accounts.google.com/ServiceLogin?hl=zh-TW&passive=true&continue=http://www.google.com/&ec=GAZAAQ" class=gb4>&#30331;&#20837;</a></nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div></div><center><br clear="all" id="lgpd"><div id="lga"><img alt="Google" height="92" src="/images/branding/googlelogo/1x/googlelogo_white_background_color_272x92dp.png" style="padding:28px 0 14px" width="272" id="hplogo"><br><br></div><form action="/search" name="f"><table cellpadding="0" cellspacing="0"><tr valign="top"><td width="25%">&nbsp;</td><td align="center" nowrap=""><input name="ie" value="ISO-8859-1" type="hidden"><input value="zh-HK" name="hl" type="hidden"><input name="source" type="hidden" value="hp"><input name="biw" type="hidden"><input name="bih" type="hidden"><div class="ds" style="height:32px;margin:4px 0"><input class="lst" style="margin:0;padding:5px 8px 0 6px;vertical-align:top;color:#000" autocomplete="off" value="" title="Google &#25628;&#23563;" maxlength="2048" name="q" size="57"></div><br style="line-height:0"><span class="ds"><span class="lsbb"><input class="lsb" value="Google &#25628;&#23563;" name="btnG" type="submit"></span></span><span class="ds"><span class="lsbb"><input class="lsb" id="tsuid1" value="&#22909;&#25163;&#27683;" name="btnI" type="submit"><script nonce="hfg6Zb4qrit5t9t+2VorvA==">(function(){var id='tsuid1';document.getElementById(id).onclick = function(){if (this.form.q.value){this.checked = 1;if (this.form.iflsig)this.form.iflsig.disabled = false;}
else top.location='/doodles/';};})();</script><input value="AINFCbYAAAAAYNWgNxoEaYnKcwjwIj439eFUReJm4IYm" name="iflsig" type="hidden"></span></span></td><td class="fl sblc" align="left" nowrap="" width="25%"><a href="/advanced_search?hl=zh-HK&amp;authuser=0">&#36914;&#38542;&#25628;&#23563;</a></td></tr></table><input id="gbv" name="gbv" type="hidden" value="1"><script nonce="hfg6Zb4qrit5t9t+2VorvA==">(function(){
var a,b="1";if(document&&document.getElementById)if("undefined"!=typeof XMLHttpRequest)b="2";else if("undefined"!=typeof ActiveXObject){var c,d,e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(c=0;d=e[c++];)try{new ActiveXObject(d),b="2"}catch(h){}}a=b;if("2"==a&&-1==location.search.indexOf("&gbv=2")){var f=google.gbvu,g=document.getElementById("gbv");g&&(g.value=a);f&&window.setTimeout(function(){location.href=f},0)};}).call(this);</script></form><div id="gac_scont"></div><div style="font-size:83%;min-height:3.5em"><br><div id="gws-output-pages-elements-homepage_additional_languages__als"><style>#gws-output-pages-elements-homepage_additional_languages__als{font-size:small;margin-bottom:24px}#SIvCob{display:inline-block;line-height:28px;}#SIvCob a{padding:0 3px;}.H6sW5{display:inline-block;margin:0 2px;white-space:nowrap}.z4hgWe{display:inline-block;margin:0 2px}</style><div id="SIvCob">Google &#36879;&#36942;&#20197;&#19979;&#35486;&#35328;&#25552;&#20379;&#65306;  <a href="http://www.google.com/setprefs?sig=0_2xl4W4KVpuZVhMhZ3t6m2Hos5bM%3D&amp;hl=zh-CN&amp;source=homepage&amp;sa=X&amp;ved=0ahUKEwiW_fOqrbLxAhVhmuYKHSfeCeEQ2ZgBCAU">&#20013;&#25991;(&#31616;&#20307;)</a>    <a href="http://www.google.com/setprefs?sig=0_2xl4W4KVpuZVhMhZ3t6m2Hos5bM%3D&amp;hl=en&amp;source=homepage&amp;sa=X&amp;ved=0ahUKEwiW_fOqrbLxAhVhmuYKHSfeCeEQ2ZgBCAY">English</a>  </div></div></div><span id="footer"><div style="font-size:10pt"><div style="margin:19px auto;text-align:center" id="WqQANb"><a href="/intl/zh-TW/ads/">&#24291;&#21578;&#26381;&#21209;</a><a href="/intl/zh-TW/about.html">&#38364;&#26044; Google</a><a href="http://www.google.com/setprefdomain?prefdom=HK&amp;prev=http://www.google.com.hk/&amp;sig=K_w2as9kGAaTB8780pgkG-2djoBaE%3D">Google.com.hk</a></div></div><p style="font-size:8pt;color:#70757a">&copy; 2021 - <a href="/intl/zh-TW/policies/privacy/">&#31169;&#38577;&#27402;&#25919;&#31574;</a> - <a href="/intl/zh-TW/policies/terms/">&#26781;&#27454;</a></p></span></center><script nonce="hfg6Zb4qrit5t9t+2VorvA==">(function(){window.google.cdo={height:0,width:0};(function(){
var a=window.innerWidth,b=window.innerHeight;if(!a||!b){var c=window.document,d="CSS1Compat"==c.compatMode?c.documentElement:c.body;a=d.clientWidth;b=d.clientHeight}a&&b&&(a!=google.cdo.width||b!=google.cdo.height)&&google.log("","","/client_204?&atyp=i&biw="+a+"&bih="+b+"&ei="+google.kEI);}).call(this);})();</script> <script nonce="hfg6Zb4qrit5t9t+2VorvA==">(function(){google.xjs={ck:'',cs:'',excm:[],pml:false};})();</script>  <script nonce="hfg6Zb4qrit5t9t+2VorvA==">(function(){var u='/xjs/_/js/k\x3dxjs.hp.en.JRh4tN6N9QQ.O/m\x3dsb_he,d/am\x3dAHgCLA/d\x3d1/ed\x3d1/rs\x3dACT90oGYDOHwsB3rPn3m-ZHj8pe2l1LEYg';
var e=this||self,f=function(a){return a};var g;var l=function(a,b){this.g=b===h?a:""};l.prototype.toString=function(){return this.g+""};var h={};function m(){var a=u;google.lx=function(){n(a);google.lx=function(){}};google.bx||google.lx()}
function n(a){google.timers&&google.timers.load&&google.tick&&google.tick("load","xjsls");var b=document;var c="SCRIPT";"application/xhtml+xml"===b.contentType&&(c=c.toLowerCase());c=b.createElement(c);if(void 0===g){b=null;var k=e.trustedTypes;if(k&&k.createPolicy){try{b=k.createPolicy("goog#html",{createHTML:f,createScript:f,createScriptURL:f})}catch(p){e.console&&e.console.error(p.message)}g=b}else g=b}a=(b=g)?b.createScriptURL(a):a;a=new l(a,h);c.src=a instanceof l&&a.constructor===l?a.g:"type_error:TrustedResourceUrl";var d;a=(c.ownerDocument&&c.ownerDocument.defaultView||window).document;(d=(a=null===(d=a.querySelector)||void 0===d?void 0:d.call(a,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":"")&&c.setAttribute("nonce",d);document.body.appendChild(c);google.psa=!0};setTimeout(function(){m()},0);})();(function(){window.google.xjsu='/xjs/_/js/k\x3dxjs.hp.en.JRh4tN6N9QQ.O/m\x3dsb_he,d/am\x3dAHgCLA/d\x3d1/ed\x3d1/rs\x3dACT90oGYDOHwsB3rPn3m-ZHj8pe2l1LEYg';})();function _DumpException(e){throw e;}
function _F_installCss(c){}
(function(){google.jl={attn:false,blt:'none',dw:false,emtn:0,ine:false,lls:'default',pdt:0,snet:true,ubm:false,uwp:true};})();(function(){var pmc='{\x22d\x22:{},\x22sb_he\x22:{\x22agen\x22:true,\x22cgen\x22:true,\x22client\x22:\x22heirloom-hp\x22,\x22dh\x22:true,\x22dhqt\x22:true,\x22ds\x22:\x22\x22,\x22ffql\x22:\x22zh-TW\x22,\x22fl\x22:true,\x22host\x22:\x22google.com\x22,\x22isbh\x22:28,\x22msgs\x22:{\x22cibl\x22:\x22&#28165;&#38500;&#25628;&#23563;\x22,\x22dym\x22:\x22&#24744;&#26159;&#19981;&#26159;&#35201;&#26597;* Connection #0 to host www.google.com left intact
&#65306;\x22,\x22lcky\x22:\x22&#22909;&#25163;&#27683;\x22,\x22lml\x22:\x22&#30637;&#35299;&#35443;&#24773;\x22,\x22oskt\x22:\x22&#36664;&#20837;&#24037;&#20855;\x22,\x22psrc\x22:\x22&#24050;&#24478;&#24744;&#30340;&#12300;\\u003Ca href\x3d\\\x22/history\\\x22\\u003E&#32178;&#38913;&#35352;&#37636;\\u003C/a\\u003E&#12301;&#20013;&#31227;&#38500;&#36889;&#31558;&#25628;&#23563;&#35352;&#37636;\x22,\x22psrl\x22:\x22&#31227;&#38500;\x22,\x22sbit\x22:\x22&#20197;&#22294;&#25628;&#23563;\x22,\x22srch\x22:\x22Google &#25628;&#23563;\x22},\x22nrft\x22:false,\x22ovr\x22:{},\x22pq\x22:\x22\x22,\x22refpd\x22:true,\x22refspre\x22:true,\x22rfs\x22:[],\x22sbas\x22:\x220 3px 8px 0 rgba(0,0,0,0.2),0 0 0 1px rgba(0,0,0,0.08)\x22,\x22sbpl\x22:16,\x22sbpr\x22:16,\x22scd\x22:10,\x22stok\x22:\x22u263RsNYq7Rig10ULvdN1ULpPe0\x22,\x22uhde\x22:false}}';google.pmc=JSON.parse(pmc);})();</script>        </body></html>%

~ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── lijinglin@hk L 0.02 RAM 0.34G SWP 0B 16:21:59
❯ export all_proxy=socks5h://127.0.0.1:1080 http_proxy=http://127.0.0.1:1081 https_proxy=http://127.0.0.1:1081 ALL_PROXY=socks5h://127.0.0.1:1080 HTTP_PROXY=http://127.0.0.1:1081 HTTPS_PROXY=http://127.0.0.1:1081

~ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── lijinglin@hk L 0.02 RAM 0.34G SWP 0B 16:22:05
❯ curl http://www.google.com -vvv
* Uses proxy env variable http_proxy == 'http://127.0.0.1:1081'
*   Trying 127.0.0.1:1081...
* Connected to 127.0.0.1 (127.0.0.1) port 1081 (#0)
> GET http://www.google.com/ HTTP/1.1
> Host: www.google.com
> User-Agent: curl/7.74.0
> Accept: */*
> Proxy-Connection: Keep-Alive
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 503 Service Unavailable
< Connection: close
* HTTP/1.1 proxy connection set close!
< Proxy-Connection: close
< Content-Length: 0
<
* Closing connection 0

~ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── lijinglin@hk L 0.02 RAM 0.34G SWP 0B 16:22:11
❯ sudo systemctl restart v2ray.service

~ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── lijinglin@hk L 0.02 RAM 0.36G SWP 0B 16:22:23
❯ curl http://www.google.com -vvv
* Uses proxy env variable http_proxy == 'http://127.0.0.1:1081'
*   Trying 127.0.0.1:1081...
* Connected to 127.0.0.1 (127.0.0.1) port 1081 (#0)
> GET http://www.google.com/ HTTP/1.1
> Host: www.google.com
> User-Agent: curl/7.74.0
> Accept: */*
> Proxy-Connection: Keep-Alive
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Connection: close
< Transfer-Encoding: chunked
< Accept-Ranges: none
< Cache-Control: private, max-age=0
< Content-Type: text/html; charset=ISO-8859-1
< Date: Fri, 25 Jun 2021 08:22:28 GMT
< Expires: -1
< P3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
< Server: gws
< Set-Cookie: 1P_JAR=2021-06-25-08; expires=Sun, 25-Jul-2021 08:22:28 GMT; path=/; domain=.google.com; Secure
< Set-Cookie: NID=217=uP1B7a47e37UM29k44E_zOMErBAkg6MEEc2wRTFXWN_a3ZmarCI_AuB0HoZlYyjwWGrTqFjCm_eu0TK5YsfiIBCIrnLPzcpEyLF9U32Hd2sV1B0CaUugw3lyHdL6SzSvoCfQiAAj3MbB3fSDI3V6w-ufGH7R6AdGPuIduR_hX9o; expires=Sat, 25-Dec-2021 08:22:28 GMT; path=/; domain=.google.com; HttpOnly
< Vary: Accept-Encoding
< X-Frame-Options: SAMEORIGIN
< X-Xss-Protection: 0
<
<!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en"><head><meta content="Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for." name="description"><meta content="noodp" name="robots"><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><meta content="/images/branding/googleg/1x/googleg_standard_color_128dp.png" itemprop="image"><title>Google</title><script nonce="UdsbwAB5bUTuNZOVbk9xuA==">(function(){window.google={kEI:'RJLVYOilLKrK0PEP-cKhwA0',kEXPI:'0,772215,1,530320,92,56781,954,5104,207,3265,1539,2316,383,246,5,1354,4936,315,16231,10,1106274,1197735,548,43,328941,51224,16114,28684,17572,4858,1362,3472,5819,3028,17580,4020,978,13228,3847,4192,2692,3738,1142,13385,4517,2780,917,5081,1593,1279,2212,530,149,1103,840,1983,214,4100,3514,606,2023,1777,520,14670,3227,2845,7,12353,5097,7877,4928,108,1483,1924,908,2,941,2614,2397,10313,432,3,346,1244,1,5445,150,5988,5333,2652,4,1252,276,2304,1238,5225,576,74,1983,2627,2014,4067,7434,2110,1714,3050,2658,4164,78,3114,31,11413,2215,1591,714,638,37,1457,5586,9765,770,665,5806,2551,4094,2256,884,4,908,3,3541,1,5349,9361,1,1813,283,389,1,2,2,518,5992,6754,432,552,4609,179,2,1394,737,19,769,8,1,1272,1715,2,3036,21,2015,3699,441,12,615,4,32,4,1341,3930,2,114,4,683,442,185,157,254,56,4,434,1454,923,94,29,285,2015,1275,4172,406,2095,537,1065,2744,1015,1512,295,157,3,1040,645,515,1286,79,1710,1619,3,1714,288,434,70,937,758,182,1340,1,57,176,4817,36,2,633,202,3,75,50,766,713,783,1089,311,1630,56,13,689,759,320,1740,327,1373,167,72,814,1,574,956,396,74,1,8,10,1,8,42,217,1450,76,955,309,333,1076,453,132,1885,32,313,34,75,1002,350,4,7,116,1097,5625322,100,94,32,63,155,2,59,5996810,46,2800650,882,444,1,2,80,1,1796,1,9,2,2551,1,748,141,795,563,1,4265,1,1,2,1331,3299,843,2609,155,17,13,72,139,4,2,20,2,169,13,19,46,5,39,96,548,29,2,2,1,2,1,2,2,7,4,1,2,2,2,2,2,2,353,513,199,20,13,2,2,4,2,14,15,2,18,13,16,1,23955041,2857455,1152819,268,1835,24965,1499,2,867,1510,3,120,3,6,338,3,1011,829,499,75,540,618,168,454',kBL:'agTH'};google.sn='webhp';google.kHL='en';})();(function(){
var f=this||self;var h,k=[];function l(a){for(var b;a&&(!a.getAttribute||!(b=a.getAttribute("eid")));)a=a.parentNode;return b||h}function m(a){for(var b=null;a&&(!a.getAttribute||!(b=a.getAttribute("leid")));)a=a.parentNode;return b}
function n(a,b,c,d,g){var e="";c||-1!==b.search("&ei=")||(e="&ei="+l(d),-1===b.search("&lei=")&&(d=m(d))&&(e+="&lei="+d));d="";!c&&f._cshid&&-1===b.search("&cshid=")&&"slh"!==a&&(d="&cshid="+f._cshid);c=c||"/"+(g||"gen_204")+"?atyp=i&ct="+a+"&cad="+b+e+"&zx="+Date.now()+d;/^http:/i.test(c)&&"https:"===window.location.protocol&&(google.ml&&google.ml(Error("a"),!1,{src:c,glmm:1}),c="");return c};h=google.kEI;google.getEI=l;google.getLEI=m;google.ml=function(){return null};google.log=function(a,b,c,d,g){if(c=n(a,b,c,d,g)){a=new Image;var e=k.length;k[e]=a;a.onerror=a.onload=a.onabort=function(){delete k[e]};a.src=c}};google.logUrl=n;}).call(this);(function(){
google.y={};google.sy=[];google.x=function(a,b){if(a)var c=a.id;else{do c=Math.random();while(google.y[c])}google.y[c]=[a,b];return!1};google.sx=function(a){google.sy.push(a)};google.lm=[];google.plm=function(a){google.lm.push.apply(google.lm,a)};google.lq=[];google.load=function(a,b,c){google.lq.push([[a],b,c])};google.loadAll=function(a,b){google.lq.push([a,b])};google.bx=!1;google.lx=function(){};}).call(this);google.f={};(function(){
document.documentElement.addEventListener("submit",function(b){var a;if(a=b.target){var c=a.getAttribute("data-submitfalse");a="1"==c||"q"==c&&!a.elements.q.value?!0:!1}else a=!1;a&&(b.preventDefault(),b.stopPropagation())},!0);document.documentElement.addEventListener("click",function(b){var a;a:{for(a=b.target;a&&a!=document.documentElement;a=a.parentElement)if("A"==a.tagName){a="1"==a.getAttribute("data-nohref");break a}a=!1}a&&b.preventDefault()},!0);}).call(this);</script><style>#gbar,#guser{font-size:13px;padding-top:1px !important;}#gbar{height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}@media all{.gb1{height:22px;margin-right:.5em;vertical-align:top}#gbar{float:left}}a.gb1,a.gb4{text-decoration:underline !important}a.gb1,a.gb4{color:#00c !important}.gbi .gb4{color:#dd8e27 !important}.gbf .gb4{color:#900 !important}
</style><style>body,td,a,p,.h{font-family:arial,sans-serif}body{margin:0;overflow-y:scroll}#gog{padding:3px 8px 0}td{line-height:.8em}.gac_m td{line-height:17px}form{margin-bottom:20px}.h{color:#1558d6}em{font-weight:bold;font-style:normal}.lst{height:25px;width:496px}.gsfi,.lst{font:18px arial,sans-serif}.gsfs{font:17px arial,sans-serif}.ds{display:inline-box;display:inline-block;margin:3px 0 4px;margin-left:4px}input{font-family:inherit}body{background:#fff;color:#000}a{color:#4b11a8;text-decoration:none}a:hover,a:active{text-decoration:underline}.fl a{color:#1558d6}a:visited{color:#4b11a8}.sblc{padding-top:5px}.sblc a{display:block;margin:2px 0;margin-left:13px;font-size:11px}.lsbb{background:#f8f9fa;border:solid 1px;border-color:#dadce0 #70757a #70757a #dadce0;height:30px}.lsbb{display:block}#WqQANb a{display:inline-block;margin:0 12px}.lsb{background:url(/images/nav_logo229.png) 0 -261px repeat-x;border:none;color:#000;cursor:pointer;height:30px;margin:0;outline:0;font:15px arial,sans-serif;vertical-align:top}.lsb:active{background:#dadce0}.lst:focus{outline:none}</style><script nonce="UdsbwAB5bUTuNZOVbk9xuA=="></script></head><body bgcolor="#fff"><script nonce="UdsbwAB5bUTuNZOVbk9xuA==">(function(){var src='/images/nav_logo229.png';var iesg=false;document.body.onload = function(){window.n && window.n();if (document.images){new Image().src=src;}
if (!iesg){document.f&&document.f.q.focus();document.gbqf&&document.gbqf.q.focus();}
}
})();</script><div id="mngb"><div id=gbar><nobr><b class=gb1>Search</b> <a class=gb1 href="http://www.google.com/imghp?hl=en&tab=wi">Images</a> <a class=gb1 href="http://maps.google.com/maps?hl=en&tab=wl">Maps</a> <a class=gb1 href="https://play.google.com/?hl=en&tab=w8">Play</a> <a class=gb1 href="http://www.youtube.com/?gl=US&tab=w1">YouTube</a> <a class=gb1 href="https://news.google.com/?tab=wn">News</a> <a class=gb1 href="https://mail.google.com/mail/?tab=wm">Gmail</a> <a class=gb1 href="https://drive.google.com/?tab=wo">Drive</a> <a class=gb1 style="text-decoration:none" href="https://www.google.com/intl/en/about/products?tab=wh"><u>More</u> &raquo;</a></nobr></div><div id=guser width=100%><nobr><span id=gbn class=gbi></span><span id=gbf class=gbf></span><span id=gbe></span><a href="http://www.google.com/history/optout?hl=en" class=gb4>Web History</a> | <a  href="/preferences?hl=en" class=gb4>Settings</a> | <a target=_top id=gb_70 href="https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=http://www.google.com/&ec=GAZAAQ" class=gb4>Sign in</a></nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div></div><center><br clear="all" id="lgpd"><div id="lga"><img alt="Google" height="92" src="/images/branding/googlelogo/1x/googlelogo_white_background_color_272x92dp.png" style="padding:28px 0 14px" width="272" id="hplogo"><br><br></div><form action="/search" name="f"><table cellpadding="0" cellspacing="0"><tr valign="top"><td width="25%">&nbsp;</td><td align="center" nowrap=""><input name="ie" value="ISO-8859-1" type="hidden"><input value="en" name="hl" type="hidden"><input name="source" type="hidden" value="hp"><input name="biw" type="hidden"><input name="bih" type="hidden"><div class="ds" style="height:32px;margin:4px 0"><input class="lst" style="margin:0;padding:5px 8px 0 6px;vertical-align:top;color:#000" autocomplete="off" value="" title="Google Search" maxlength="2048" name="q" size="57"></div><br style="line-height:0"><span class="ds"><span class="lsbb"><input class="lsb" value="Google Search" name="btnG" type="submit"></span></span><span class="ds"><span class="lsbb"><input class="lsb" id="tsuid1" value="I'm Feeling Lucky" name="btnI" type="submit"><script nonce="UdsbwAB5bUTuNZOVbk9xuA==">(function(){var id='tsuid1';document.getElementById(id).onclick = function(){if (this.form.q.value){this.checked = 1;if (this.form.iflsig)this.form.iflsig.disabled = false;}
else top.location='/doodles/';};})();</script><input value="AINFCbYAAAAAYNWgVJXJsidN4MCR-IJf8qwWGcDwsqij" name="iflsig" type="hidden"></span></span></td><td class="fl sblc" align="left" nowrap="" width="25%"><a href="/advanced_search?hl=en&amp;authuser=0">Advanced search</a></td></tr></table><input id="gbv" name="gbv" type="hidden" value="1"><script nonce="UdsbwAB5bUTuNZOVbk9xuA==">(function(){
var a,b="1";if(document&&document.getElementById)if("undefined"!=typeof XMLHttpRequest)b="2";else if("undefined"!=typeof ActiveXObject){var c,d,e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];for(c=0;d=e[c++];)try{new ActiveXObject(d),b="2"}catch(h){}}a=b;if("2"==a&&-1==location.search.indexOf("&gbv=2")){var f=google.gbvu,g=document.getElementById("gbv");g&&(g.value=a);f&&window.setTimeout(function(){location.href=f},0)};}).call(this);</script></form><div id="gac_scont"></div><div style="font-size:83%;min-height:3.5em"><br></div><span id="footer"><div style="font-size:10pt"><div style="margin:19px auto;text-align:center" id="WqQANb"><a href="/intl/en/ads/">Advertising�Programs</a><a href="/services/">Business Solutions</a><a href="/intl/en/about.html">About Google</a></div></div><p style="font-size:8pt;color:#70757a">&copy; 2021 - <a href="/intl/en/policies/privacy/">Privacy</a> - <a href="/intl/en/policies/terms/">Terms</a></p></span></center><script nonce="UdsbwAB5bUTuNZOVbk9xuA==">(function(){window.google.cdo={height:0,width:0};(function(){
var a=window.innerWidth,b=window.innerHeight;if(!a||!b){var c=window.document,d="CSS1Compat"==c.compatMode?c.documentElement:c.body;a=d.clientWidth;b=d.clientHeight}a&&b&&(a!=google.cdo.width||b!=google.cdo.height)&&google.log("","","/client_204?&atyp=i&biw="+a+"&bih="+b+"&ei="+google.kEI);}).call(this);})();</script> <script nonce="UdsbwAB5bUTuNZOVbk9xuA==">(function(){google.xjs={ck:'',cs:'',excm:[],pml:false};})();</script>  <script nonce="UdsbwAB5bUTuNZOVbk9xuA==">(function(){var u='/xjs/_/js/k\x3dxjs.hp.en_US.JRh4tN6N9QQ.O/m\x3dsb_he,d/am\x3dAHgCLA/d\x3d1/ed\x3d1/rs\x3dACT90oGq1Ln_99CJXORDJChcIkowqosPIA';
var e=this||self,f=function(a){return a};var g;var l=function(a,b){this.g=b===h?a:""};l.prototype.toString=function(){return this.g+""};var h={};function m(){var a=u;google.lx=function(){n(a);google.lx=function(){}};google.bx||google.lx()}
function n(a){google.timers&&google.timers.load&&google.tick&&google.tick("load","xjsls");var b=document;var c="SCRIPT";"application/xhtml+xml"===b.contentType&&(c=c.toLowerCase());c=b.createElement(c);if(void 0===g){b=null;var k=e.trustedTypes;if(k&&k.createPolicy){try{b=k.createPolicy("goog#html",{createHTML:f,createScript:f,createScriptURL:f})}catch(p){e.console&&e.console.error(p.message)}g=b}else g=b}a=(b=g)?b.createScriptURL(a):a;a=new l(a,h);c.src=a instanceof l&&a.constructor===l?a.g:"type_error:TrustedResourceUrl";var d;a=(c.ownerDocument&&c.ownerDocument.defaultView||window).document;(d=(a=null===(d=a.querySelector)||void 0===d?void 0:d.call(a,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":"")&&c.setAttribute("nonce",d);document.body.appendChild(c);google.psa=!0};setTimeout(function(){m()},0);})();(function(){window.google.xjsu='/xjs/_/js/k\x3dxjs.hp.en_US.JRh4tN6N9QQ.O/m\x3dsb_he,d/am\x3dAHgCLA/d\x3d1/ed\x3d1/rs\x3dACT90oGq1Ln_99CJXORDJChcIkowqosPIA';})();function _DumpException(e){throw e;}
function _F_installCss(c){}
(function(){google.jl={attn:false,blt:'none',dw:false,emtn:0,ine:false,lls:'default',pdt:0,snet:true,ubm:false,uwp:true};})();(function(){var pmc='{\x22d\x22:{},\x22sb_he\x22:{\x22agen\x22:true,\x22cgen\x22:true,\x22client\x22:\x22heirloom-hp\x22,\x22dh\x22:true,\x22dhqt\x22:true,\x22ds\x22:\x22\x22,\x22ffql\x22:\x22en\x22,\x22fl\x22:true,\x22host\x22:\x22google.com\x22,\x22isbh\x22:28,\x22jsonp\x22:true,\x22msgs\x22:{\x22cibl\x22:\x22Clear Search\x22,\x22dym\x22:\x22Did you mean:\x22,\x22lc* Closing connection 0
ky\x22:\x22I\\u0026#39;m Feeling Lucky\x22,\x22lml\x22:\x22Learn more\x22,\x22oskt\x22:\x22Input tools\x22,\x22psrc\x22:\x22This search was removed from your \\u003Ca href\x3d\\\x22/history\\\x22\\u003EWeb History\\u003C/a\\u003E\x22,\x22psrl\x22:\x22Remove\x22,\x22sbit\x22:\x22Search by image\x22,\x22srch\x22:\x22Google Search\x22},\x22nrft\x22:false,\x22ovr\x22:{},\x22pq\x22:\x22\x22,\x22refpd\x22:true,\x22rfs\x22:[],\x22sbas\x22:\x220 3px 8px 0 rgba(0,0,0,0.2),0 0 0 1px rgba(0,0,0,0.08)\x22,\x22sbpl\x22:16,\x22sbpr\x22:16,\x22scd\x22:10,\x22stok\x22:\x224BagR0c9eZXjYIAsHQ65F7RHkTo\x22,\x22uhde\x22:false}}';google.pmc=JSON.parse(pmc);})();</script>        </body></html>%

~ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── lijinglin@hk L 0.01 RAM 0.34G SWP 0B 16:22:28
❯

附日志如下

~ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── lijinglin@hk L 0.00 RAM 0.35G SWP 0B 16:28:42
❯ sudo cat /var/log/v2ray/access.log
2021/06/25 10:49:47 127.0.0.1:49114 accepted http://www.google.com/ [h2]
2021/06/25 16:19:47 127.0.0.1:50112 accepted http://www.google.com/ [h2]
2021/06/25 16:19:52 127.0.0.1:50114 accepted http://www.google.com/ [h2]
2021/06/25 16:22:09 127.0.0.1:50122 accepted http://www.google.com/ [h2]
2021/06/25 16:22:27 127.0.0.1:50126 accepted http://www.google.com/ [h2]

~ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── lijinglin@hk L 0.00 RAM 0.35G SWP 0B 16:29:18
❯ sudo cat /var/log/v2ray/error.log
2021/06/25 10:49:21 [Info] app/dns: DNS: created UDP client initialized for 119.29.29.29:53
2021/06/25 10:49:21 [Info] app/dns: DNS: created UDP client initialized for 223.5.5.5:53
2021/06/25 10:49:21 [Info] app/dns: DNS: created UDP client initialized for 1.1.1.1:53
2021/06/25 10:49:21 [Info] app/dns: DNS: created UDP client initialized for 8.8.8.8:53
2021/06/25 10:49:21 [Info] app/dns: DNS: created localhost client
2021/06/25 10:49:21 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:1080
2021/06/25 10:49:21 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:1081
2021/06/25 10:49:21 [Warning] V2Ray 4.40.1 started
2021/06/25 10:49:47 [Info] [3350992896] proxy/http: request to Method [GET] Host [www.google.com] with URL [http://www.google.com/]
2021/06/25 10:49:47 [Info] [3350992896] app/dispatcher: taking detour [h2] for [tcp:www.google.com:80]
2021/06/25 10:49:47 [Info] [3350992896] common/mux: dispatching request to tcp:www.google.com:80
2021/06/25 10:49:48 [Info] proxy/vmess/outbound: tunneling request to tcp:v1.mux.cool:9527 via tcp:us.lijinglin.dev:443
2021/06/25 10:50:03 [Info] common/mux: failed to read metadata > io: read/write on closed pipe
2021/06/25 10:50:04 [Info] failed to handler mux client connection > proxy/vmess/outbound: connection ends > context canceled
2021/06/25 16:19:47 [Info] [1567673882] proxy/http: request to Method [GET] Host [www.google.com] with URL [http://www.google.com/]
2021/06/25 16:19:47 [Info] [1567673882] app/dispatcher: taking detour [h2] for [tcp:www.google.com:80]
2021/06/25 16:19:47 [Info] [1567673882] common/mux: dispatching request to tcp:www.google.com:80
2021/06/25 16:19:49 [Warning] failed to handler mux client connection > proxy/vmess/outbound: failed to find an available destination > common/retry: [transport/internet/http: failed to dial to tcp:us.lijinglin.dev:443 > Put "https://us.lijinglin.dev:443/adf2af88-8a8c-351f-cd67-be9254d03cc2": dial tcp: operation was canceled] > common/retry: all retry attempts failed
2021/06/25 16:19:49 [Info] common/mux: failed to read metadata > io: read/write on closed pipe
2021/06/25 16:19:49 [Warning] [1567673882] proxy/http: failed to read response from www.google.com > unexpected EOF
2021/06/25 16:19:49 [Info] [1567673882] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > EOF
2021/06/25 16:19:52 [Info] [721254417] proxy/http: request to Method [GET] Host [www.google.com] with URL [http://www.google.com/]
2021/06/25 16:19:52 [Info] [721254417] app/dispatcher: taking detour [h2] for [tcp:www.google.com:80]
2021/06/25 16:19:52 [Info] [721254417] common/mux: dispatching request to tcp:www.google.com:80
2021/06/25 16:19:54 [Warning] failed to handler mux client connection > proxy/vmess/outbound: failed to find an available destination > common/retry: [transport/internet/http: failed to dial to tcp:us.lijinglin.dev:443 > Put "https://us.lijinglin.dev:443/adf2af88-8a8c-351f-cd67-be9254d03cc2": dial tcp: operation was canceled] > common/retry: all retry attempts failed
2021/06/25 16:19:54 [Info] common/mux: failed to read metadata > io: read/write on closed pipe
2021/06/25 16:19:54 [Warning] [721254417] proxy/http: failed to read response from www.google.com > unexpected EOF
2021/06/25 16:19:54 [Info] [721254417] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > EOF
2021/06/25 16:22:09 [Info] [4123049821] proxy/http: request to Method [GET] Host [www.google.com] with URL [http://www.google.com/]
2021/06/25 16:22:09 [Info] [4123049821] app/dispatcher: taking detour [h2] for [tcp:www.google.com:80]
2021/06/25 16:22:09 [Info] [4123049821] common/mux: dispatching request to tcp:www.google.com:80
2021/06/25 16:22:11 [Warning] failed to handler mux client connection > proxy/vmess/outbound: failed to find an available destination > common/retry: [transport/internet/http: failed to dial to tcp:us.lijinglin.dev:443 > Put "https://us.lijinglin.dev:443/adf2af88-8a8c-351f-cd67-be9254d03cc2": dial tcp: operation was canceled] > common/retry: all retry attempts failed
2021/06/25 16:22:11 [Info] common/mux: failed to read metadata > io: read/write on closed pipe
2021/06/25 16:22:11 [Warning] [4123049821] proxy/http: failed to read response from www.google.com > unexpected EOF
2021/06/25 16:22:11 [Info] [4123049821] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > EOF
2021/06/25 16:22:24 [Info] app/dns: DNS: created UDP client initialized for 119.29.29.29:53
2021/06/25 16:22:24 [Info] app/dns: DNS: created UDP client initialized for 223.5.5.5:53
2021/06/25 16:22:24 [Info] app/dns: DNS: created UDP client initialized for 1.1.1.1:53
2021/06/25 16:22:24 [Info] app/dns: DNS: created UDP client initialized for 8.8.8.8:53
2021/06/25 16:22:24 [Info] app/dns: DNS: created localhost client
2021/06/25 16:22:24 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:1080
2021/06/25 16:22:24 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:1081
2021/06/25 16:22:24 [Warning] V2Ray 4.40.1 started
2021/06/25 16:22:27 [Info] [1698827084] proxy/http: request to Method [GET] Host [www.google.com] with URL [http://www.google.com/]
2021/06/25 16:22:27 [Info] [1698827084] app/dispatcher: taking detour [h2] for [tcp:www.google.com:80]
2021/06/25 16:22:27 [Info] [1698827084] common/mux: dispatching request to tcp:www.google.com:80
2021/06/25 16:22:28 [Info] proxy/vmess/outbound: tunneling request to tcp:v1.mux.cool:9527 via tcp:us.lijinglin.dev:443
2021/06/25 16:22:43 [Info] common/mux: failed to read metadata > io: read/write on closed pipe
2021/06/25 16:22:44 [Info] failed to handler mux client connection > proxy/vmess/outbound: connection ends > context canceled

~ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── lijinglin@hk L 0.00 RAM 0.35G SWP 0B 16:29:33
❯
xiaokangwang commented 3 years ago

我尝试修复了一下, 请看一下这个修改有没有让问题好转。 https://github.com/v2fly/v2ray-core/commit/0cbb6d75f3e5344da0ab8e0749fca458c1bb5962 https://github.com/v2fly/v2ray-core/actions/runs/971014703

gitiray commented 3 years ago

同样发现h2无法连接,旧内核反而正常,然后就找到了这个帖子

xiaokangwang commented 3 years ago

之前出现的问题大概是h2传输共享底层连接,但是之前的建立连接的 context 被取消后,之后的连接也会被牵连的问题。这个问题应该已经通过 ToBackgroundDetachedContext 解决了。

但是现在还是有连接稳定性问题,而我目前还没想到其他可以解释这个问题的原因。希望遇到这个问题的开发者能提供具体的问题原因,以便在保留链式代理的功能的同时解决这个问题。

lijinglin3 commented 3 years ago

我尝试修复了一下, 请看一下这个修改有没有让问题好转。 0cbb6d7 https://github.com/v2fly/v2ray-core/actions/runs/971014703

我这边试了两天,暂时没有遇到无法重连的问题了

xiaokangwang commented 3 years ago

The same fix have been applied to grpc transport. https://github.com/v2fly/v2ray-core/commit/e00d80eac432b4265f8d4929ec45db30a1a41de6

The root issue is the way mux have been handled in these transport with shared underlying connections.