9092 Commits

Author SHA1 Message Date
Itamar Turner-Trauring
20d4175abc Fix typecheck complaint 2023-06-06 12:18:02 -04:00
Itamar Turner-Trauring
a977180baf Fix lint 2023-06-06 12:15:31 -04:00
Itamar Turner-Trauring
e8744f91e5 Hook up HTTP storage for servers listening on .onion addresses 2023-06-06 12:06:51 -04:00
Itamar Turner-Trauring
74a121da74 Fix bug which meant object could not be created. 2023-06-06 11:47:36 -04:00
Itamar Turner-Trauring
5af0ead5b9 Refactor HTTP client creation to be more centralized. 2023-06-06 10:58:16 -04:00
Itamar Turner-Trauring
940600e0ed Link to ticket. 2023-06-05 12:54:51 -04:00
Itamar Turner-Trauring
96670ded65 Switch to using officially support constants, now part of pyOpenSSL's public
API.

The cryptography APIs we were previously using were not supported and aren't
available in all releases.
2023-06-01 17:27:21 -04:00
Itamar Turner-Trauring
f4a099c801 Merge remote-tracking branch 'origin/master' into 4029-http-storage-client-respects-request-to-use-tor 2023-05-23 14:53:55 -04:00
Itamar Turner-Trauring
d510103f96
Merge pull request #1301 from tahoe-lafs/4027-invalid-unicode
Invalid unicode in Authorization header should give better response

Fixes ticket:4027
2023-05-23 14:53:22 -04:00
Itamar Turner-Trauring
41131ca755
Merge pull request #1302 from tahoe-lafs/4028-more-integration
Fix another integration test failure

Fixes ticket:4028
2023-05-23 14:51:07 -04:00
Itamar Turner-Trauring
b03db14d70 Merge branch '4028-more-integration' into 4027-invalid-unicode 2023-05-23 14:08:09 -04:00
Itamar Turner-Trauring
652c179602 Remove comment. 2023-05-23 14:08:03 -04:00
Itamar Turner-Trauring
1e46e36ee2 More direct approach. 2023-05-23 13:46:32 -04:00
Itamar Turner-Trauring
d15ea8cb52 Shutdown more immediately. 2023-05-23 13:24:29 -04:00
Itamar Turner-Trauring
71cb357f45 Upstream code should make sure this doesn't happen. 2023-05-22 13:03:46 -04:00
Itamar Turner-Trauring
084499dd4b Fix lint. 2023-05-22 13:02:58 -04:00
Itamar Turner-Trauring
1ed440812a Add a safety check. 2023-05-22 13:00:20 -04:00
Itamar Turner-Trauring
546a51355a Merge branch '4028-more-integration' into 4029-http-storage-client-respects-request-to-use-tor 2023-05-22 11:43:12 -04:00
Itamar Turner-Trauring
0ccee4e958 Hook up the Tor-based Agent when necessary. 2023-05-19 13:59:18 -04:00
Itamar Turner-Trauring
2e0e0467fb Hook up HTTP storage client Tor support. 2023-05-18 11:14:51 -04:00
Itamar Turner-Trauring
47991f23fa More refactoring to make it easier to get a txtorcon.Tor instance. 2023-05-18 11:05:38 -04:00
Itamar Turner-Trauring
34accd694c Refactor to return something more useful. 2023-05-18 10:51:31 -04:00
Itamar Turner-Trauring
ffecdf8c77 Switch to non-deprecated API. 2023-05-18 10:18:46 -04:00
Itamar Turner-Trauring
3cf03a5c33 More glue to connect Tor up to the HTTP-based storage client. 2023-05-18 09:28:58 -04:00
Itamar Turner-Trauring
f83b73b5f3 Make Tor provider available at the right place to enable it for HTTP storage
client connections.
2023-05-16 10:44:34 -04:00
Itamar Turner-Trauring
ba9946e6ea Fix tests. 2023-05-10 16:34:02 -04:00
Itamar Turner-Trauring
c92c93e6d5 Clean up cached HTTP connections on shutdown. 2023-05-10 16:31:53 -04:00
Itamar Turner-Trauring
a1e49b75c0 Merge remote-tracking branch 'origin/master' into 4009-more-logging 2023-05-09 16:52:42 -04:00
Itamar Turner-Trauring
1c9de67104 Nicer error messages, useful for debugging. 2023-05-09 16:47:32 -04:00
Itamar Turner-Trauring
40b930c02c Another test. 2023-05-09 16:47:28 -04:00
Itamar Turner-Trauring
fea2450c60 Test and fix for really bad authorization header. 2023-05-09 10:53:17 -04:00
Itamar Turner-Trauring
2e22df60fe Try with fewer persistent HTTP connections. 2023-05-08 13:33:34 -04:00
Itamar Turner-Trauring
05a3fd9acf Merge remote-tracking branch 'origin/master' into 4016-http-storage-content-type 2023-05-04 12:49:03 -04:00
Itamar Turner-Trauring
61dc1e4d43 Merge remote-tracking branch 'origin/master' into 4009-more-logging 2023-05-03 17:34:26 -04:00
Itamar Turner-Trauring
3cc80ae283 Merge remote-tracking branch 'origin/master' into 4016-http-storage-content-type 2023-05-03 17:02:22 -04:00
Itamar Turner-Trauring
84a6db3e88 Merge remote-tracking branch 'origin/master' into 4022-freezing-test 2023-05-03 16:43:52 -04:00
Itamar Turner-Trauring
f1f3c122da
Merge pull request #1292 from tahoe-lafs/4015-more-linting
More linting, using ruff

Fixes ticket:4015
2023-05-02 13:29:02 -04:00
Itamar Turner-Trauring
22715abc85 This is fine. 2023-05-02 12:17:55 -04:00
Itamar Turner-Trauring
9f78fd5c7f Use even fewer nodes. 2023-05-02 12:11:31 -04:00
Itamar Turner-Trauring
d4f2038fd1 Rearrange nodes so it's possible to create even fewer. 2023-05-02 12:11:23 -04:00
Itamar Turner-Trauring
8fa89bd985 Run a little faster. 2023-05-02 12:05:40 -04:00
Itamar Turner-Trauring
5c2f18dfec Set a higher timeout. 2023-05-02 12:03:14 -04:00
Itamar Turner-Trauring
b5c5ed50d4 Merge remote-tracking branch 'origin/master' into clean-up-tor-and-i2p-providers 2023-05-02 09:50:21 -04:00
Itamar Turner-Trauring
57b93b2230 Merge remote-tracking branch 'origin/master' into 4015-more-linting 2023-05-01 12:54:51 -04:00
Itamar Turner-Trauring
c455fcfc5a Merge remote-tracking branch 'origin/master' into 4009-more-logging 2023-05-01 12:53:00 -04:00
Itamar Turner-Trauring
bc2506c3e2 Merge remote-tracking branch 'origin/master' into 3999.structure-config-manipulation 2023-05-01 12:52:18 -04:00
Itamar Turner-Trauring
8c8e24a3b9 Black reformat. 2023-05-01 11:50:05 -04:00
Itamar Turner-Trauring
2292d64fcd Set a better content type for data downloads. 2023-05-01 11:49:09 -04:00
Itamar Turner-Trauring
fbd6dbda47 text/html is a bad default content type. 2023-05-01 11:42:02 -04:00
Itamar Turner-Trauring
5f19605075 During testing, ensure we're not getting text/html unexpectedly. 2023-05-01 11:41:51 -04:00