Commit Graph

25 Commits

Author SHA1 Message Date
Andy Wang
392fc41de8
Move random utilities to common package 2024-04-13 23:08:34 +01:00
name
e696b18187 format using goimports 2023-03-07 17:09:18 +08:00
Andy Wang
8dd4ae4bef
Better conform message data length to TLS standards 2020-12-29 00:16:24 +00:00
Andy Wang
5933ad8781
Replace bytes.Buffer with vanilla []byte in tls wrapper 2020-12-24 10:26:53 +00:00
Andy Wang
4d1612774f
Use a buffer pool to reduce contentions in tls wrapper 2020-12-23 00:02:25 +00:00
Andy Wang
d706e8f087 Remove redundant code 2020-10-18 00:46:03 +01:00
Andy Wang
f111ab29ab Fix RandRead retry timer 2020-10-18 00:45:45 +01:00
Andy Wang
0968285664 Improve test coverage 2020-10-18 00:45:28 +01:00
Andy Wang
a1bc148d50 Restore AddRecordLayer 2020-10-17 15:10:41 +01:00
Andy Wang
1f5e0c1d24 Add benchmark for TLSConn.Write 2020-10-17 15:06:45 +01:00
Andy Wang
86e2935607 Use a pre-made buffer for TLSConn.Write 2020-10-17 13:46:22 +01:00
Andy Wang
253ea94d2a Better and more explicit handling of first packet, reduces exposure of active probing 2020-08-12 11:32:39 +01:00
Andy Wang
70aa04354a Bounds check elimination 2020-04-17 01:03:36 +01:00
Andy Wang
e202d8d03b Implement WriteTo and ReadFrom timeouts 2020-04-14 14:14:51 +01:00
Andy Wang
4a81683e44 Code cleanup and move stuff around 2020-04-14 14:14:51 +01:00
Andy Wang
14787a7057 Implement stream WriteTo 2020-04-12 12:43:24 +01:00
Andy Wang
e4b45a55e3 Optimise AddRecordLayer 2020-04-10 19:09:17 +01:00
Andy Wang
e9243a2e9f Framing in Stream.Write to prevent silent short write 2020-04-10 18:48:36 +01:00
Andy Wang
8c9bab2a6f TLSConn.Write returns correct length 2020-04-10 16:15:23 +01:00
Andy Wang
e5bda61587 Close connections properly 2020-04-09 23:52:08 +01:00
Andy Wang
254b7152b6 Fix tests 2020-04-09 22:21:02 +01:00
Andy Wang
444182f5bb Purge impurity 2020-04-09 22:11:12 +01:00
Andy Wang
86214a1df0 Implement stream SetReadDeadline 2020-04-09 18:56:17 +01:00
Andy Wang
e41394c83c Set frame size limit through multiplexer 2020-04-09 16:37:46 +01:00
Andy Wang
97858197cd Move common types to its own package 2020-04-09 00:39:40 +01:00