server/README.md
Дамјан Георгиевски 803ffc0c99 use futures::sync::mpsc::channel() with 4MB buffer
… instead of unbounded() with no limits in buffering

this should implement a back pressure, when the client can't read the
response fast enough, the thread creating the archive would block the
write, instead of filling the memory.

Use Sink::wait() to make a blocking Sender
2018-07-07 23:49:46 +02:00

665 B

a simple http server like python -m http.server but:

  • written in rust with actix, should be faster
  • allow concurrency
  • download whole directories in .tar format
  • better auto index
  • maybe announce itself on mDNS (avahi)
  • maybe compress

Usage [TODO]:

http-server [--bind ADDRESS] [--chdir DIRECTORY] [port]

  port                  Specify alternate port [default: 8000]
  --bind ADDRESS        Specify alternate bind address [default: all interfaces]
  --chdir DIRECTORY     Specify directory to server [default: current directory]

FAQ

  • Q: why .tar and not .zip? A: you can't stream a zip file efficiently, it needs to write back in a file.