Commit Graph

9382 Commits

Author SHA1 Message Date
Ujjwal Verma
1ad7b794d7 Lint 2020-12-12 21:24:16 +01:00
Ujjwal Verma
41c79bf837 Parse Client hello from buffer 2020-12-12 21:24:16 +01:00
Maximilian Hils
3efcba777f add connection_strategy option 2020-12-12 21:24:16 +01:00
Maximilian Hils
8a66217daa [sans-io] add new tls layer (wip)
this implementation is considerably more complex that the previous one,
but supports different client and server states.
2020-12-12 21:24:16 +01:00
Maximilian Hils
47e83d73cb [sans-io] improve logging 2020-12-12 21:24:16 +01:00
Maximilian Hils
967d48bdfa [sans-io] remove hook replies
Hooks should not have immediate replies. Instead, they should modify
the object passed over the hook.
2020-12-12 21:24:16 +01:00
Maximilian Hils
4a9cd7f36f [sans-io] move tls layer proof-of-concept 2020-12-12 21:24:16 +01:00
Maximilian Hils
753d0ade7e [sans-io] implement layer selection as an addon 2020-12-12 21:24:16 +01:00
Maximilian Hils
eddef85f5f [sans-io] add options to context 2020-12-12 21:24:16 +01:00
Maximilian Hils
e7b67e96a2 [sans-io] merge ClientServerContext and Context 2020-12-12 21:24:16 +01:00
Maximilian Hils
446472d38e [sans-io] improve folder structure 2020-12-12 21:24:16 +01:00
Ujjwal Verma
4c2fb7f250 add sans-io websocket layer 2020-12-12 21:24:16 +01:00
Maximilian Hils
6d59d213e3 protocols: docs++, minor test improvements 2020-12-12 21:24:16 +01:00
Maximilian Hils
2679387849 protocols: add playbook.fork() 2020-12-12 21:24:16 +01:00
Maximilian Hils
41597272f9 protocols: make playbooks immutable 2020-12-12 21:24:16 +01:00
Maximilian Hils
2e3704faf1 add websocket stub 2020-12-12 21:24:16 +01:00
Maximilian Hils
9757403008 complete proxyserver addon
this is still a lot of glue code, but generally functional.
2020-12-12 21:24:16 +01:00
Maximilian Hils
a309cdb56c simplify async server 2020-12-12 21:24:16 +01:00
Maximilian Hils
d8621553b1 suppress typing complaints in tests 2020-12-12 21:24:16 +01:00
Maximilian Hils
2a68029b21 improve command repr 2020-12-12 21:24:16 +01:00
Maximilian Hils
c4824f941d tcp layer: handle connection error 2020-12-12 21:24:16 +01:00
Maximilian Hils
4bca88608b add proxy server addon (wip) 2020-12-12 21:24:16 +01:00
Maximilian Hils
f28e7e5f0f minor fixes 2020-12-12 21:24:16 +01:00
Maximilian Hils
35475f6719 async server: implement close command 2020-12-12 21:24:16 +01:00
Maximilian Hils
b14b487cbe test syntax experimentations 2020-12-12 21:24:16 +01:00
Maximilian Hils
b61d638192 minor changes to connection closing 2020-12-12 21:24:16 +01:00
Maximilian Hils
fef17c0706 add test playbook placeholders, complete tcp layer 2020-12-12 21:24:16 +01:00
Maximilian Hils
adfe181423 use a single DataReceived event
this makes sure that we avoid any inconsistencies
2020-12-12 21:24:16 +01:00
Maximilian Hils
14a4254285 OpenConnection: add err attr, remove ok attr 2020-12-12 21:24:16 +01:00
Maximilian Hils
a415edbb7c add exemplary tcp layer tests 2020-12-12 21:24:16 +01:00
Maximilian Hils
8898af188e add http1 layer based on h11 2020-12-12 21:24:16 +01:00
Maximilian Hils
3b355d783f events are past tense 2020-12-12 21:24:16 +01:00
Maximilian Hils
cd9049ee91 wording 2020-12-12 21:24:16 +01:00
Maximilian Hils
c1ddd478cc implement blocking yields 2020-12-12 21:24:16 +01:00
Maximilian Hils
d64b3e9491 implement basic tls layer 2020-12-12 21:24:15 +01:00
Maximilian Hils
40e84eb64a minor changes to sync server 2020-12-12 21:24:15 +01:00
Maximilian Hils
4caa1dffbd replace .send() with async events 2020-12-12 21:24:15 +01:00
Maximilian Hils
063c52065f add async server 2020-12-12 21:24:15 +01:00
Maximilian Hils
2c628eb065 test implementation 2020-12-12 21:24:15 +01:00
Maximilian Hils
961d884730
update PR linter (#4344) 2020-12-12 16:18:49 +01:00
Maximilian Hils
08ecb21a78
sans-io adjustments (#4342) 2020-12-12 16:09:11 +01:00
林玮 (Jade Lin)
380ac072aa
ASGIApp should ignore the HTTP flows loaded from somewhere (#4324) 2020-12-12 11:17:38 +01:00
Maximilian Hils
4f46400184
Merge pull request #4338 from mhils/sans-io-adjustments
Sans-IO Adjustments
2020-12-11 14:09:35 +01:00
Maximilian Hils
01f57346ee sans-io adjustments 2020-12-11 14:09:18 +01:00
Maximilian Hils
39b0b6c110
Merge pull request #4337 from mhils/sans-io-adjustments
Sans-IO Adjustments
2020-12-11 11:10:56 +01:00
Maximilian Hils
3c9999c0c6 sans-io compat++ 2020-12-11 10:54:41 +01:00
Maximilian Hils
00a190221d add 499 status code 2020-12-10 14:29:42 +01:00
Maximilian Hils
a300fc132d
Merge pull request #4334 from mhils/issue-4312
fix #4312
2020-12-10 10:42:31 +01:00
Maximilian Hils
5c734b3cd6
Merge pull request #4333 from mhils/issue-4280
fix #4280
2020-12-10 09:55:29 +01:00
Maximilian Hils
dc964b3887 fix #4312 2020-12-10 09:54:11 +01:00