Jean-Paul Calderone
6c0e5f5807
news fragment
2022-11-29 10:52:02 -05:00
Jean-Paul Calderone
02aeb68f17
Take care with str vs bytes in the implementation
...
Also replace the intentional BAD_REQUEST with GONE for this case.
2022-11-29 10:51:07 -05:00
Jean-Paul Calderone
d7fe25f7c7
Correct the assertion about how "not found" should be handled
...
Behavior verified visually against a live client node:
```
❯ curl -v 'http://localhost:3456/uri/URI:CHK:cmtcxq7hwxvfxan34yiev6ivhy:qvcekmjtoetdcw4kmi7b3rtblvgx7544crnwaqtiewemdliqsokq:1:1:1 '
* Trying 127.0.0.1:3456...
* Connected to localhost (127.0.0.1) port 3456 (#0 )
> GET /uri/URI:CHK:cmtcxq7hwxvfxan34yiev6ivhy:qvcekmjtoetdcw4kmi7b3rtblvgx7544crnwaqtiewemdliqsokq:1:1:1 HTTP/1.1
> Host: localhost:3456
> User-Agent: curl/7.83.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 410 Gone
< X-Frame-Options: DENY
< Referrer-Policy: no-referrer
< Server: TwistedWeb/22.10.0
< Date: Tue, 29 Nov 2022 15:39:47 GMT
< Content-Type: text/plain;charset=utf-8
< Accept-Ranges: bytes
< Content-Length: 294
< ETag: ui2tnwl5lltj5clzpyff42jdce-
<
NoSharesError: no shares could be found. Zero shares usually indicates a corrupt URI, or that no servers were connected, but it might also indicate severe corruption. You should perform a filecheck on this object to learn more.
The full error message is:
* Connection #0 to host localhost left intact
no shares (need 1). Last failure: None
```
2022-11-29 10:49:20 -05:00
Itamar Turner-Trauring
ac994420bd
Merge pull request #1227 from tahoe-lafs/3940-http-timeouts
...
Add http storage timeouts
Fixes ticket:3940
2022-11-28 11:03:50 -05:00
Itamar Turner-Trauring
aa80c9ef47
Be more robust.
2022-11-28 10:21:59 -05:00
Itamar Turner-Trauring
3ba166c2cb
A bit more robust code.
2022-11-28 10:20:12 -05:00
Itamar Turner-Trauring
0f4dc91295
Refactor so internal attributes needn't leak.
2022-11-28 10:12:08 -05:00
Itamar Turner-Trauring
38d7430c57
Simplify.
2022-11-28 10:03:42 -05:00
Itamar Turner-Trauring
2ab8e3e8d2
Cancel timeout on failures too.
2022-11-28 10:02:56 -05:00
Itamar Turner-Trauring
6c3e9e670d
Link to issue.
2022-11-23 09:53:11 -05:00
Itamar Turner-Trauring
7f1d7d4f46
Better explanation.
2022-11-23 09:53:07 -05:00
Itamar Turner-Trauring
4fd92a915b
Install tor on any ubuntu version.
2022-11-23 09:43:45 -05:00
Itamar Turner-Trauring
62400d29b3
Seems like Ubuntu 22.04 has issues with Tor at the moment
2022-11-23 09:36:53 -05:00
Itamar Turner-Trauring
c80469b50b
Handle the Windows waker too.
2022-11-22 11:55:56 -05:00
Itamar Turner-Trauring
3a613aee70
Try a different approach to timeouts: dynamic, instead of hardcoded.
2022-11-21 12:24:50 -05:00
Itamar Turner-Trauring
8cfdae2ab4
sigh
2022-11-18 15:26:02 -05:00
Itamar Turner-Trauring
aeaced848d
Merge remote-tracking branch 'origin/master' into 3940-http-timeouts
2022-11-18 15:25:44 -05:00
Itamar Turner-Trauring
4c0c75a034
Fix DelayedCall leak in tests.
2022-11-18 13:56:54 -05:00
Itamar Turner-Trauring
ac524a3077
Merge pull request #1225 from tahoe-lafs/3783-storage-client-http
...
Make storage_client support HTTP
Fixes ticket:3783
2022-11-17 12:19:54 -05:00
Itamar Turner-Trauring
9b21f1da90
Increase how many statuses are stored.
2022-11-17 11:35:10 -05:00
Itamar Turner-Trauring
d182a2f186
Add the delay to appropriate test.
2022-11-17 11:01:12 -05:00
Itamar Turner-Trauring
097d918a24
Sigh
2022-11-16 13:37:50 -05:00
Itamar Turner-Trauring
3531737347
Make timeouts less aggressive, CI machines are slow?
2022-11-16 10:36:11 -05:00
Itamar Turner-Trauring
2ab172ffca
Try to set more aggressive timeouts when testing.
2022-11-16 10:26:29 -05:00
Itamar Turner-Trauring
9f5f287473
Nope, not helpful.
2022-11-16 09:57:39 -05:00
Itamar Turner-Trauring
a20943e10c
As an experiment, see if this fixes failing CI.
2022-11-16 09:33:01 -05:00
Itamar Turner-Trauring
2a5e8e5971
Better cleanup.
2022-11-15 15:05:27 -05:00
Itamar Turner-Trauring
30a9877236
Merge branch '3783-storage-client-http' into 3940-http-timeouts
2022-11-15 14:38:48 -05:00
Itamar Turner-Trauring
f3fc426830
Switch to [storage] force_foolscap.
2022-11-15 14:36:14 -05:00
Itamar Turner-Trauring
fb52b4d302
Delete some garbage.
2022-11-15 14:22:30 -05:00
Itamar Turner-Trauring
8e4ac69032
Stop test mode when done.
2022-11-15 14:21:31 -05:00
Itamar Turner-Trauring
4aeb62b66c
Use a constant.
2022-11-15 14:16:41 -05:00
Itamar Turner-Trauring
d700163aec
Remove no-longer-relevant comment.
2022-11-15 14:14:29 -05:00
Itamar Turner-Trauring
6c80ad5290
Not necessary.
2022-11-15 14:13:50 -05:00
Itamar Turner-Trauring
d1287df629
The short timeout should be specific to the storage client's needs.
2022-11-15 14:02:19 -05:00
Jean-Paul Calderone
4cb38a0596
Merge pull request #1213 from tahoe-lafs/3922.minor-gbs-text-fixes
...
Fix some minor GBS spec issues
2022-11-08 10:36:05 -05:00
Jean-Paul Calderone
4dc195ea96
Merge remote-tracking branch 'origin/master' into 3922.minor-gbs-text-fixes
2022-11-08 09:30:13 -05:00
Jean-Paul Calderone
90f1eb6245
Fix the fURL and NURL links
2022-11-08 09:24:29 -05:00
Itamar Turner-Trauring
8d678fe3de
Increase timeout.
2022-11-07 11:41:50 -05:00
Itamar Turner-Trauring
65a7945fd9
Don't need a connection timeout since we have request-level timeouts.
2022-11-07 11:39:45 -05:00
Itamar Turner-Trauring
afd4f52ff7
News file.
2022-11-07 11:32:14 -05:00
Itamar Turner-Trauring
2c911eeac1
Make sure everything is using the same clock.
2022-11-07 11:28:36 -05:00
Itamar Turner-Trauring
f8b9607fc2
Finish up limited_content() timeout code.
2022-11-07 11:26:11 -05:00
Itamar Turner-Trauring
ce59ddc1ea
Merge branch '3783-storage-client-http' into 3940-http-timeouts
2022-11-07 11:20:54 -05:00
Itamar Turner-Trauring
c4772482ef
WIP
2022-11-07 11:19:00 -05:00
Itamar Turner-Trauring
414b463556
Use built-in treq timeout feature.
2022-11-07 09:23:04 -05:00
Itamar Turner-Trauring
1e50e96e24
Update to new test API.
2022-11-03 15:04:41 -04:00
Itamar Turner-Trauring
8bebb09edd
Less test-specific way to make test_rref pass.
2022-11-03 14:38:59 -04:00
Itamar Turner-Trauring
262d9d85b9
Switch to using persistent connections in tests too.
2022-11-03 14:32:43 -04:00
Itamar Turner-Trauring
db59eb12c0
Increase timeout.
2022-11-02 15:22:36 -04:00