Cloak/internal/client
不确定 cfbf0dfcb6
Fix critical bugs in session opening for TCP and UDP in case of Singleplex mode. (#145)
* Fix critical bugs in session opening for TCP and UDP in case of Singleplex mode.

- In case of TCP, don't open the session in the listener accept thread. This
  causes resource exhaustion of the tcp listener backlog queue in case of internet
  connection disruption or timeout.

- In case of UDP, don't create a new session for every UDP packet.

* Fix race in integration test.

* Fix race condition in session maker

* Code style improvements

* Explicit session.Close() call is indeed needed

Co-authored-by: Andy Wang <cbeuw.andy@gmail.com>
2020-12-19 14:42:10 +00:00
..
auth_test.go Rename constants to camel case 2020-10-21 16:42:24 +01:00
auth.go Make sure times are UTC and correctly subtract the timestamp window from the server time. (#134) 2020-11-24 18:58:02 +00:00
chrome_test.go Fix test GREASE comparison 2020-09-13 11:32:07 +01:00
chrome.go Update Chrome signature to 85. Address #129 2020-09-12 21:18:31 +01:00
connector.go Refactor for clarity and add comments 2020-10-18 14:42:47 +01:00
firefox_test.go Refactor client ClientHello composition 2019-08-17 00:16:31 +01:00
firefox.go Code cleanup and move stuff around 2020-04-14 14:14:51 +01:00
piper.go Fix critical bugs in session opening for TCP and UDP in case of Singleplex mode. (#145) 2020-12-19 14:42:10 +00:00
state_test.go Improve test coverage for client's ParseConfig 2020-10-17 18:52:00 +01:00
state.go Add CdnHttpHost config setting with documentation. (#143) 2020-12-12 20:40:48 +00:00
TLS_test.go Add unit tests 2019-08-02 18:00:27 +01:00
TLS.go Use a pre-made buffer for TLSConn.Write 2020-10-17 13:46:22 +01:00
transport.go Export fields for testing 2020-04-10 14:09:48 +01:00
websocket.go Prevent nil pointer panic when server response is incorrect under CDN mode 2020-09-07 14:48:07 +01:00