Commit Graph

37 Commits

Author SHA1 Message Date
J. Nick Koston b22258cca7
Small speed up to writing outgoing packets (#785) 2023-12-04 15:59:33 -10:00
J. Nick Koston 844326a3a2
Remove unused variable from frame helper base (#769) 2023-11-28 08:05:45 -06: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 cea62efbba
Small cython cleanps to the frame helpers (#733) 2023-11-26 13:25:55 -06:00
J. Nick Koston 908545768b
Update pre-commit with newer tools (#724) 2023-11-26 08:09:52 -06:00
J. Nick Koston 32821752a5
Remove unused pylint disables (#720) 2023-11-25 14:41:27 -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 c0a153c9f3
Speed up frame helpers (#696) 2023-11-24 12:40:33 -06:00
J. Nick Koston 065c8e715d
Fix signedness of server name check (#697) 2023-11-24 12:35:58 -06:00
J. Nick Koston 9c63f3205a
Remove unused slot in the noise frame helper (#695) 2023-11-24 12:18:26 -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 33d1d3d8c4
Speed up noise frame helper (#693) 2023-11-24 12:04:12 -06:00
J. Nick Koston aa3b8af246
Fix signedness with incoming plaintext data (#694) 2023-11-24 12:01:02 -06:00
J. Nick Koston 663f7ca950
Speed up plain text frame helper (#692) 2023-11-24 11:46:15 -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 b31472c569
Refactor noise _error_on_incorrect_preamble to improve coverage (#683) 2023-11-24 08:36:31 -06:00
J. Nick Koston 39aba56958
Remove unreachable code in noise frame helper (#682) 2023-11-24 08:29:42 -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 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 8678fa9ebc
Small cleanups to noise write_packet (#627) 2023-11-09 11:28:18 -06:00
J. Nick Koston 419bf67e9b
Small readability improvements to the plain_text frame helper (#626) 2023-11-09 11:12:00 -06:00
J. Nick Koston 94157a8ac1
Small speed up to the plaintext frame helper (#625) 2023-11-09 10:20:42 -06:00
J. Nick Koston 1630816dc8
Fix unhandled exception when handshake times out (#601) 2023-10-23 12:32:20 -05:00
J. Nick Koston 741308c93f
Add basic pre-commit to handle eol space (#592) 2023-10-19 14:00:36 -10: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 20ddb972e7
Reduce memory copy when buffering is not required (#572) 2023-10-12 15:17:46 -10:00
dependabot[bot] a9d93dcdf3
Bump mypy from 1.5.1 to 1.6.0 (#563)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-10-12 09:14:14 -10:00
J. Nick Koston 2c6f3d40ed
Add optional basic cython implementation for frame_helper (#564) 2023-10-12 08:12:39 -10:00
J. Nick Koston 11a19438cb
Avoid a few calls to fetch loop time (#533) 2023-09-04 12:56:23 -05:00
J. Nick Koston 49d86f940e
Refactor frame helpers to share more code (#500) 2023-07-21 03:11:04 -05:00
J. Nick Koston d63b9bbf5d
Upgrade python code to 3.9 (#496) 2023-07-19 15:33:28 -05:00
J. Nick Koston 65e659e4a5
Split _frame_helper into plain_text and noise (#491) 2023-07-18 14:28:56 -05:00