amphp / http-tunnel Goto Github PK
View Code? Open in Web Editor NEWThis package provides an HTTP CONNECT tunnel for PHP based on Amp.
License: MIT License
This package provides an HTTP CONNECT tunnel for PHP based on Amp.
License: MIT License
I would like to see an example of using this type of proxy. And in general, with the new version of amp, it is extremely difficult to find any examples
Is there any plan to implement this?
We're unable to migrate to v3 version cause we need http/socks5 proxy support for http-client.
Lots of ESTABLISHED proxy connection leave in system, ss command return no keepalive timer.
root@ecs-web-2:~# lsof -p 45576 |grep IPv
php 45576 web 5u IPv4 965777 0t0 TCP *:2345 (LISTEN)
php 45576 web 15u IPv4 979696 0t0 TCP ecs-web-2:35526->xx.xx.79.224:62008 (ESTABLISHED)
php 45576 web 16u IPv4 964904 0t0 TCP ecs-web-2:21576->xx.xx.79.224:61031 (ESTABLISHED)
php 45576 web 17u IPv4 964063 0t0 TCP ecs-web-2:24330->xx.xx.79.225:56114 (ESTABLISHED)
php 45576 web 18u IPv4 964059 0t0 TCP ecs-web-2:24302->xx.xx.79.225:56114 (ESTABLISHED)
php 45576 web 20u IPv4 979714 0t0 TCP ecs-web-2:20790->xx.xx.79.224:60034 (ESTABLISHED)
php 45576 web 21u IPv4 964949 0t0 TCP ecs-web-2:21594->xx.xx.79.224:61031 (ESTABLISHED)
php 45576 web 22u IPv4 964939 0t0 TCP ecs-web-2:24344->xx.xx.79.225:56114 (ESTABLISHED)
php 45576 web 25u IPv4 967879 0t0 TCP ecs-web-2:13356->xx.xx.99.56:52031 (ESTABLISHED)
php 45576 web 26u IPv4 963314 0t0 TCP ecs-web-2:27192->xx.xx.99.57:52035 (ESTABLISHED)
php 45576 web 27u IPv4 965036 0t0 TCP ecs-web-2:13034->xx.xx.79.225:62016 (ESTABLISHED)
php 45576 web 33u IPv4 963176 0t0 TCP ecs-web-2:31100->xx.xx.79.225:59011 (ESTABLISHED)
It's 15:44 now, but the connection created at 13:01, client is already destruct in php:
root@ecs-web-2:~# ll /proc/45576/fd/15
lrwx------ 1 web www-data 64 Jun 21 13:01 /proc/45576/fd/15 -> 'socket:[979696]'
ss info has no keepalive timer:
root@ecs-web-2:~# ss -aeon | grep 'xx.xx.79.224:62008'
tcp ESTAB 0 0 192.168.1.60:35526 xx.xx.79.224:62008 uid:1000 ino:979696 sk:168b <->
ss normal connection:
tcp ESTAB 0 0 192.168.1.60:2345 47.93.20.248:48210 timer:(keepalive,1min9sec,0) uid:1000 ino:1055699 sk:148a <->
I have use php-meminfo (https://github.com/BitOne/php-meminfo) extension to detect the Amp\Http\Client\HttpClient
and Amp\Http\Tunnel\Http1TunnelConnector
instance count is normal, but the connection leave too much.
Where the problem it is?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.