Xray-core/transport/internet
yuhan6665 578d903a9e
Quic related improvements (#915)
* DialSystem for Quic

DialSystem() is needed in case of Android client,
where the raw conn is protected for vpn service

* Fix client dialer log

Log such as:
tunneling request to tcp:www.google.com:80 via tcp:x.x.x.x:443
the second "tcp" is misleading when using mKcp or quic transport

Remove the second "tcp" and add the correct logging for transport dialer:
- transport/internet/tcp: dialing TCP to tcp:x.x.x.x:443
- transport/internet/quic: dialing quic to udp:x.x.x.x:443

* Quic new stream allocation mode

Currently this is how Quic works: client muxing all tcp and udp traffic through a single session, when there are more than 32 running streams in the session,
the next stream request will fail and open with a new session (port). Imagine lineup the session from left to right:
 |
 |  |
 |  |  |

As the streams finishes, we still open stream from the left, original session. So the base session will always be there and new sessions on the right come and go.
However, either due to QOS or bugs in Quic implementation, the traffic "wear out" the base session. It will become slower and in the end not receiving any data from server side.
I couldn't figure out a solution for this problem at the moment, as a workaround:
       |  |
    |  |  |
 |  |  |

I came up with this new stream allocation mode, that it will never open new streams in the old sessions, but only from current or new session from right.
The keeplive config is turned off from server and client side. This way old sessions will natually close and new sessions keep generating.
Note the frequency of new session is still controlled by the server side. Server can assign a large max stream limit. In this case the new allocation mode will be similar to the current mode.
2022-01-28 18:11:30 -05:00
..
domainsocket Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
grpc grpc: add initial_windows_size option 2021-12-19 21:14:14 -05:00
headers vformat supports multi-core processing (#757) 2021-10-12 15:29:22 +00:00
http Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
kcp Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
quic Quic related improvements (#915) 2022-01-28 18:11:30 -05:00
stat Fix: CounterConnection with ReadV/WriteV (#720) 2021-09-20 20:11:21 +08:00
tagged Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
tcp Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
tls Verify peer cert function for better man in the middle prevention (#746) 2021-10-22 12:38:40 +08:00
udp Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
websocket Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
xtls hotRelodaInterval --> hotReloadInterval 2021-10-26 21:45:31 -04:00
config.go v1.1.0 2020-12-04 09:36:16 +08:00
config.pb.go Add tcpKeepAliveInterval in transport sockopt (#754) 2021-10-12 15:39:08 +00:00
config.proto Add tcpKeepAliveInterval in transport sockopt (#754) 2021-10-12 15:39:08 +00:00
dialer.go Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
dialer_test.go v1.1.0 2020-12-04 09:36:16 +08:00
errors.generated.go v1.1.0 2020-12-04 09:36:16 +08:00
filelocker.go v1.0.0 2020-11-25 19:01:53 +08:00
filelocker_other.go Style: format code 2021-09-20 21:00:55 +08:00
filelocker_windows.go v1.0.0 2020-11-25 19:01:53 +08:00
header.go v1.1.0 2020-12-04 09:36:16 +08:00
header_test.go v1.1.0 2020-12-04 09:36:16 +08:00
internet.go v1.1.0 2020-12-04 09:36:16 +08:00
memory_settings.go v1.0.0 2020-11-25 19:01:53 +08:00
sockopt.go Fix: TFO AsIs bug (#452) 2021-03-30 16:42:02 +00:00
sockopt_darwin.go Fix: TFO AsIs bug (#452) 2021-03-30 16:42:02 +00:00
sockopt_freebsd.go Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00
sockopt_linux.go Add tcpKeepAliveInterval in transport sockopt (#754) 2021-10-12 15:39:08 +00:00
sockopt_linux_test.go v1.1.0 2020-12-04 09:36:16 +08:00
sockopt_other.go Style: format code 2021-09-20 21:00:55 +08:00
sockopt_test.go Style: format code 2021-09-20 21:00:55 +08:00
sockopt_windows.go Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00
system_dialer.go Export PacketConnWrapper 2021-10-22 11:57:38 +08:00
system_listener.go Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00
system_listener_test.go v1.1.0 2020-12-04 09:36:16 +08:00
tcp_hub.go Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00