Coder Social home page Coder Social logo

geomys's People

Contributors

nokaa avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

geomys's Issues

Read from TOML config

If we wish to run Geomys as a service, similar to how nginx runs, we will want to read from a configuration file somewhere on the system. Since we only have two options, directory and address, this is pretty simple. We should probably have order of precedence something like this:

CLI args > ~/.config/geomys/config > /etc/geomys/config > Defaults

Large files do not dowload

When a client attempts to download large files (larger than ~2MiB?), only ~2MiB is written to the client. I think that this is an issue with the clients, but I am unable to validate this.

Async file read

Look at brson/basic-http-server for how to do this. Seems straightforward.

Visitor count

It might be interesting to allow us to view the number of visitors when /visits is accessed or something. We can easily store the number of visitors in the server Context struct.

Eliminate chances of crashing

We want the server to be as stable as possible, so we need to get rid of the unwraps and fully implement the Machine trait for Gopher.

Update deprecated rustc_serialize to serde

rustc_serialize seems to prevent this software
from compiling likely because it is outdated,
Serde is suggested on its GitHub page as the
replacement, so that is what I recommend.

Not all path bytes are recieved

It seems as though not all of the path data is received. Cgo works properly, but when attempting to use curl or lynx, the first two bytes of the path are not received. E.g. when we run curl gopher://0.0.0.0/notes the server only receives otes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.