MortezaBashsiz / nipovpn

Powerfull http proxy
GNU General Public License v3.0
183 stars 11 forks source link

Performance degradation with defining connection timeout #91

Closed MortezaBashsiz closed 2 months ago

MortezaBashsiz commented 2 months ago

There is a performance degradation while using connection timeout

# When it is 10
[~]>$ time curl -L https://speed.cloudflare.com/__down?bytes=1 
0
real    0m0.332s
user    0m0.035s
sys 0m0.008s

# When it is 0
[~]>$ time curl -L https://speed.cloudflare.com/__down?bytes=1 
0
real    0m0.165s
user    0m0.041s
sys 0m0.007s
[~]>$ 

This degradation came with PR #90

MortezaBashsiz commented 2 months ago

Fixed