justcoding121 / titanium-web-proxy

A cross-platform asynchronous HTTP(S) proxy server in C#.
MIT License
1.92k stars 598 forks source link

When SetResponseBodyString await e.GetResponseBodyAsString() will takes more than 120s #916

Open lulianqi opened 2 years ago

lulianqi commented 2 years ago
 private async Task ProxyServer_BeforeResponse(object sender, SessionEventArgs e)
        {
            //long string is 1kb
            e.SetResponseBodyString("long string")
            //It takes more than 120s
            await e.GetResponseBodyAsString();
       }

When SetResponseBodyString await e.GetResponseBodyAsString() will takes more than 120s