Commit Graph

39 Commits

Author SHA1 Message Date
J. Nick Koston
e2bbbf4da5
Avoid creating tasks for starting/finishing the connection (#826) 2024-02-16 20:47:26 -06:00
J. Nick Koston
de1d08493d
Add support for passing multiple addresses to the client (#796) 2023-12-12 11:22:14 -10:00
J. Nick Koston
1b51530642
Reduce duplicate code between connection and frame helper (#763) 2023-11-27 23:51:38 -06:00
J. Nick Koston
cd5ad769f0
Refactor reading varuints to significant simplify plaintext frame helper (#718) 2023-11-25 14:17:24 -06:00
J. Nick Koston
67661dbd7f
Avoid expensive debug logging checks in packet processor (#700) 2023-11-25 07:51:48 -06:00
J. Nick Koston
7a57f1fa89
Optimize the frame helpers by improving cython typing (#691) 2023-11-24 12:12:32 -06:00
J. Nick Koston
0eb468ec61
Add test for corrupt or invalid encryption (#690) 2023-11-24 10:48:20 -06:00
J. Nick Koston
9d27f0c772
Reduce code duplication in noise tests (#689) 2023-11-24 10:38:43 -06:00
J. Nick Koston
412a78aa04
Test that we detect bad noise psks (#688) 2023-11-24 10:29:55 -06:00
J. Nick Koston
837d6ad650
Add test for wrong protocol in noise (#687) 2023-11-24 09:57:31 -06:00
J. Nick Koston
6453aa87f6
Reduce code duplication in noise tests (#686) 2023-11-24 09:50:00 -06:00
J. Nick Koston
095ef822f1
Fix error in noise frame helper were we could write when the writer was unset (#685) 2023-11-24 09:42:56 -06:00
J. Nick Koston
dba6c72735
Add test for empty noise hello (#684) 2023-11-24 09:01:40 -06:00
J. Nick Koston
c21e32fda7
Fix handshake getting the wrong exception when the ESP drops the connection because its not using noise (#681) 2023-11-24 08:26:12 -06:00
J. Nick Koston
83b4f43610
Refactor frame helper to get debug state from connection (#679) 2023-11-23 12:20:52 -06:00
J. Nick Koston
2501ea4275
Add additional coverage for starting noise connections (#653) 2023-11-21 16:42:23 +01:00
J. Nick Koston
f88b15e33b
Fix eof_received not raising SocketClosedAPIError (#651) 2023-11-21 14:56:31 +01:00
J. Nick Koston
c76d741cb8
Refactor to reduce duplicate connection code (#644) 2023-11-18 15:10:40 -06:00
J. Nick Koston
b12903e2e7
Refactor zeroconf code to avoid creating instances when one is unneeded (#643) 2023-11-17 13:11:36 -06:00
J. Nick Koston
f94ddf8e6a
Fix handling incoming data from protractor event loop (#642) 2023-11-16 17:50:54 -06:00
J. Nick Koston
3ccb36b6fc
Refactor frame helper to avoid py conversions when processing packets (#641) 2023-11-16 12:24:50 -06:00
J. Nick Koston
d6293d9177
Refactor frame helper to allow sending multiple packets at once (#640) 2023-11-16 10:31:02 -06:00
J. Nick Koston
ae03a831b9
Add test for successful noise handshake and single packet (#605) 2023-10-24 15:58:08 -05:00
J. Nick Koston
9f30e9d0df
Add test coverage for noise handshake failure (#604) 2023-10-24 14:44:57 -05:00
J. Nick Koston
1630816dc8
Fix unhandled exception when handshake times out (#601) 2023-10-23 12:32:20 -05:00
J. Nick Koston
63897ed680
Move varuint functions into plain_text frame_helper (#587) 2023-10-16 17:24:03 -10:00
J. Nick Koston
49d86f940e
Refactor frame helpers to share more code (#500) 2023-07-21 03:11:04 -05:00
J. Nick Koston
65e659e4a5
Split _frame_helper into plain_text and noise (#491) 2023-07-18 14:28:56 -05:00
J. Nick Koston
7196ca6ee8
Speed up encrypted handshake (#487) 2023-07-17 14:51:47 -10:00
J. Nick Koston
ab3c096c9b
Speed up noise handshake (#486) 2023-07-17 14:13:58 -10:00
J. Nick Koston
e909891ebe
Fix pong timer warning when pending ping is skipped (#483) 2023-07-17 09:27:59 -10:00
J. Nick Koston
7a80e3529b
Improve error reporting when encryption is disabled on device but client requests it (#464) 2023-07-10 21:15:14 -10:00
J. Nick Koston
b81fe760ba
Improve performance reassembling fragmented packets (#461) 2023-07-09 12:10:33 -10:00
J. Nick Koston
f3f5bd6b55
Reduce protocol overhead (#454) 2023-07-03 11:57:04 -05:00
J. Nick Koston
eaa5e295cf
Fix more cases where incorrect encryption keys were not detected (#447) 2023-06-24 10:47:24 -05:00
J. Nick Koston
a539a6e950
Improve data throughput (#421) 2023-04-19 20:47:38 -10:00
dependabot[bot]
cd142a1fc6
Bump black from 22.12.0 to 23.1.0 (#371)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-02-09 12:08:24 +13:00
J. Nick Koston
2886d361f0
Simplify connection flow with an asyncio.Protocol (#352) 2023-01-05 23:24:10 -05:00
J. Nick Koston
a3e3cec26e
Add decoder tests (#344) 2023-01-03 17:39:50 -05:00