2020-12-11 21:04:59 +00:00
|
|
|
Interesting issues will get a unique ID with
|
|
|
|
`dd if=/dev/urandom bs=5 count=1 | base32`
|
|
|
|
|
2021-02-18 19:08:31 +00:00
|
|
|
- Fix long-running downloads restarting in the middle
|
2021-01-03 04:45:14 +00:00
|
|
|
- [DMX6CO4G](issues/2021-01Jan/status-DMX6CO4G.md) fire-and-forget logs / key-value status data
|
2020-12-21 02:52:37 +00:00
|
|
|
- ptth_tail
|
|
|
|
- Scraper `rsync -ru` example
|
2021-01-03 04:45:14 +00:00
|
|
|
- 'fax' like system similar to station307
|
2020-12-18 18:10:00 +00:00
|
|
|
- (WIP) Dark mode?
|
2020-12-18 16:58:41 +00:00
|
|
|
- [K5NPHQHP](issues/2020-12Dec/metrics-K5NPHQHP.md) API for metrics + instance data + recent logs on ptth_server
|
|
|
|
- API for remote mtime
|
|
|
|
- API for remote inotify (or similar)
|
2020-12-21 02:52:37 +00:00
|
|
|
- Make TS text browser, in ptth_relay, using ptth_server APIs, and have `tail -f` behavior
|
2020-12-18 16:58:41 +00:00
|
|
|
- Make TS read-only SQLite browser (this is a long shot)
|
|
|
|
- [YNQAQKJS](issues/2020-12Dec/auth-route-YNQAQKJS.md) Add database for
|
|
|
|
scraper keys
|
2020-12-11 21:04:59 +00:00
|
|
|
- Track / Estimate bandwidth per server?
|
2020-11-10 03:01:00 +00:00
|
|
|
- "Preview as" feature for Markdown (It's not threaded through the relay yet)
|
2020-11-10 00:44:21 +00:00
|
|
|
- Make a debug client to replicate the issue Firefox is having with turtling
|
2020-12-18 16:58:41 +00:00
|
|
|
- YMFMSV2R / K5NPHQHP Add Prometheus metrics
|
2020-11-09 16:33:13 +00:00
|
|
|
- Not working great behind reverse proxies
|
2020-11-06 05:17:29 +00:00
|
|
|
|
2020-11-08 18:12:45 +00:00
|
|
|
- Impl multi-range / multi-part byte serving
|
2020-11-03 16:00:50 +00:00
|
|
|
- Deny unused HTTP methods for endpoints
|
2020-11-06 18:49:41 +00:00
|
|
|
- ETag cache based on mtime
|
2020-11-02 04:07:55 +00:00
|
|
|
- Server-side hash?
|
2020-12-11 21:04:59 +00:00
|
|
|
- UPAQ3ZPT Log / audit log?
|
2020-10-31 16:53:38 +00:00
|
|
|
|
2020-11-06 20:55:55 +00:00
|
|
|
- Prevent directory traversal attacks in file_server.rs
|
2020-10-29 12:45:35 +00:00
|
|
|
- Error handling
|
2020-10-31 17:56:36 +00:00
|
|
|
|
2021-01-19 23:24:50 +00:00
|
|
|
- [TTQG2MM5](issues/2021-01Jan/port-forwarding-TTQG2MM5.md) Reverse proxy to other local servers
|
2020-11-06 20:55:55 +00:00
|
|
|
|
2020-11-08 17:58:14 +00:00
|
|
|
# Off-project stuff:
|
2020-11-06 20:55:55 +00:00
|
|
|
|
|
|
|
- Benchmark directory entry sorting
|
2020-11-07 23:10:01 +00:00
|
|
|
|
2020-11-08 17:58:14 +00:00
|
|
|
# Known issues:
|
|
|
|
|
|
|
|
## Graceful shutdown
|
2020-11-07 23:10:01 +00:00
|
|
|
|
|
|
|
Relay can't shut down gracefully if Firefox is connected to it, e.g. if Firefox
|
|
|
|
kept a connection open while watching a video.
|
|
|
|
I'm pretty sure this is a bug in Hyper, so for now I've worked around it with a
|
|
|
|
forced shutdown timer.
|
2020-11-08 15:01:15 +00:00
|
|
|
|
|
|
|
Sometimes I get the turtle icon in Firefox's network debugger. But this happens
|
|
|
|
even with Caddy running a static file server, so I can't prove that it's on my
|
|
|
|
side. The VPS is cheap, and the datacenter is far away.
|
2020-11-08 17:58:14 +00:00
|
|
|
|
2020-12-18 16:58:41 +00:00
|
|
|
## Embedded assets
|
2020-11-08 17:58:14 +00:00
|
|
|
|
|
|
|
The bad_passwords file is huge. Since it's static, it should only be in physical
|
|
|
|
RAM when the server first launches, and then the kernel will let it be paged
|
|
|
|
out.
|
|
|
|
|
|
|
|
Rust has some open issues with compiling assets into the exe, so I'm not
|
|
|
|
going to push on this for now, for neither bad_passwords nor the HTML assets:
|
|
|
|
|
|
|
|
https://github.com/rust-lang/rust/issues/65818
|
|
|
|
|
|
|
|
I also considered compressing the passwords file, but I couldn't even get
|
|
|
|
brotli to give it a decent ratio.
|
2020-11-09 00:53:07 +00:00
|
|
|
|
|
|
|
## RAM use is kinda high
|
|
|
|
|
|
|
|
I tried to reduce the thread count in Tokio, but it's still around 12 or 13
|
|
|
|
MiB even when the server is doing nothing.
|
|
|
|
|
|
|
|
I'll leave in the minimize_ram setting for now, but it doesn't actually
|
|
|
|
reduce RAM use.
|
|
|
|
|
|
|
|
## Server names can't have spaces
|
|
|
|
|
|
|
|
I tried to figure out the percent encoding and it didn't work.
|
|
|
|
|
|
|
|
Maybe Base64 would be better or something? At least it's unambiguous and it
|
|
|
|
can go straight from UTF-8 to bytes to ASCII-armored.
|
2020-11-09 16:33:13 +00:00
|
|
|
|
|
|
|
## Turtle in Firefox's network debugger
|
|
|
|
|
|
|
|
The turtle shows up if Firefox has to wait more than 500 ms till first byte.
|
|
|
|
Curl says we can download a small file (950 bytes) end-to-end in about 250 ms.
|
|
|
|
|
|
|
|
So I think somewhere between Firefox and Caddy, something is getting confused.
|
|
|
|
Firefox, probably the same as Chromium, doesn't try to buffer entire videos
|
|
|
|
at once, so I think it purposely hangs the download, and then I'm not sure
|
|
|
|
what happens.
|
|
|
|
|
|
|
|
I might have to build a client that imitates this behavior, since it's hard
|
|
|
|
to control.
|
2020-11-19 01:45:42 +00:00
|
|
|
|
2020-12-11 21:04:59 +00:00
|
|
|
## Server can't protect its API key on Windows
|
2020-11-19 01:45:42 +00:00
|
|
|
|
2020-12-11 21:04:59 +00:00
|
|
|
This is because I use a dumb hack with Unix permissions to protect the config
|
|
|
|
file on Linux.
|