Commit Graph

79 Commits (e03080d3ba8973bc2633b2e9ecab13a062b082bc)

Author SHA1 Message Date
Andy Wang e03080d3ba Lock stream sending in all cases 5 years ago
Andy Wang c8368bcc7e Implement stream ReadFrom (flimsy) 5 years ago
Andy Wang f05cc19dbc Assign connId only when needed 5 years ago
Andy Wang 14787a7057 Implement stream WriteTo 5 years ago
Andy Wang 783d016a29 Fix a race on closing stream 5 years ago
Andy Wang 58e0797578 Synchronise stream.Write 5 years ago
Andy Wang 008fd8f0a3 Lazy allocation 5 years ago
Andy Wang e9243a2e9f Framing in Stream.Write to prevent silent short write 5 years ago
Andy Wang a51d45f41a Avoid unnecessary pass by pointer 5 years ago
Andy Wang e41394c83c Set frame size limit through multiplexer 5 years ago
Andy Wang 7bfae8accd Refactor client side transport (breaks server) 5 years ago
Andy Wang 2dc7c6d6e1 Correct switchboard valve's scope 5 years ago
Andy Wang e52daf1a39 Set defaults properly 5 years ago
Andy Wang 545164a300 Make send/receive buffer sizes configurable 5 years ago
Andy Wang 01e5d15d20 Code cleanup 5 years ago
Andy Wang c1f3408c2c Make key lengths explicit 5 years ago
Andy Wang e9afae72f0 better stream closing error message 5 years ago
Andy Wang 47410dbb97 add comments 5 years ago
Andy Wang 517a6d6e57 Handle error and retry for Crypto.rand 5 years ago
Andy Wang 6f34229aa0 Make and add stream upon reception of all new streamIDs even if they are closing 5 years ago
Andy Wang 3f5fdae284 Close session immediately after receiving signal 5 years ago
Andy Wang d65aee725a Improve stream closing logic and add tests 5 years ago
Andy Wang e7e4cd5726 Refactor frame reception processor 5 years ago
notsure2 d35472aea1 Store stream in packet receive path instead of asynchronously to fix https://github.com/cbeuw/Cloak/issues/74 5 years ago
Andy Wang fbee919f47 Use constants for Closing value 5 years ago
Andy Wang c26be98e79 Use sync.Map in multiplex instead of manual locks 5 years ago
Andy Wang a1b719b15f Add terminal message 5 years ago
Andy Wang 3b3cd277f8 Fix stream not closing 5 years ago
Andy Wang 6580e38e44 Introduce a special Session closing frame 5 years ago
Andy Wang c9318dc90b Fix potential deadlocks 5 years ago
Andy Wang 339b324946 Working direct WebSocket transport 5 years ago
Andy Wang 3f532ae065 writeFrame returns error 5 years ago
Andy Wang 2006e5971a Refactor frameSorter and datagramBuffer under one interface 5 years ago
Andy Wang 87a7684e10 More comments 5 years ago
Andy Wang eabe113547 Add Stream Timeout 5 years ago
Andy Wang ba467e8a32 Only store stream in map after Accept 5 years ago
Andy Wang 52796ad0b1 recvDataFromRemote returns err 5 years ago
Andy Wang e9a3c29429 Add some tests 5 years ago
Andy Wang c19c43f6e8 Server side UDP to proxy server 5 years ago
Andy Wang c36ec04ce5 Add unordered mode 5 years ago
Qian Wang 71e48a1947 Refactor switchboard configuration and add unordered option 5 years ago
Qian Wang cb672a99de Refactor session configuration 5 years ago
Qian Wang b7549c0664 Fix a potential nil pointer 5 years ago
Qian Wang d99b4009b2 Differentiate concrete types of LimitedValve and UnlimitedValve to avoid unnecessary atomic.AddUint64 since it has non-trivial overhead on embedded systems 5 years ago
Qian Wang 3dc4c6fb3f Add more trace logs 5 years ago
Qian Wang 01036086c7 Change the frame distribution strategy so that each stream is assigned a fixed underlying TCP connection to send its frames to reduce framesorter ooo count 5 years ago
Qian Wang fac381dbca Refactor switchboard 5 years ago
Qian Wang e75c713385 Refactor session struct's obfs fields 5 years ago
Qian Wang 33f232475d Improve logging 5 years ago
Qian Wang 726a405a26 TLS1.3 5 years ago