Giter VIP home page Giter VIP logo

Comments (2)

FedericoCeratto avatar FedericoCeratto commented on May 24, 2024

parser.nim makes assumptions about the length of the data variable.
Compiled in debug mode it raises and crashes out, compiled with -d:debug it returns none(HttpMethod)
@dom96 : is this wanted? It might create a lot of DoS
Also, perhaps developers should be able to compile their own application in debug/release/danger mode based on their needs without the underlying web framework changing behavior. Httpbeast could have its own debugging flags if needed.

from httpbeast.

Bahm avatar Bahm commented on May 24, 2024

I'm getting the same exception every few days on my website from a random request, but in fastHeadersCheck instead:

/root/.nimble/pkgs/jester-0.5.0/jester.nim(494) serve
/root/.nimble/pkgs/httpbeast-0.3.0/httpbeast.nim(484) run
/root/.nimble/pkgs/httpbeast-0.3.0/httpbeast.nim(337) eventLoop
/root/.nimble/pkgs/httpbeast-0.3.0/httpbeast.nim(133) processEvents
/root/.choosenim/toolchains/nim-1.6.0/lib/system.nim(2649) []
/root/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim(53) sysFatal
Error: unhandled exception: index -1 not in 0 .. 0 [IndexDefect]

This is reproducible with echo "" instead of printf "G" in the original example.

from httpbeast.

Related Issues (20)

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.