Comments (2)
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.
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)
- Unsanitized headers can break body in response HOT 2
- Inconsistent behavior on run() HOT 4
- Do some profiling HOT 5
- A way to kill HTTP beast? HOT 2
- hook to enable body to be streamed HOT 1
- Errors with hot code reloading HOT 1
- httpbeast-0.4.1/httpbeast.nim(373, 17) Error: undeclared identifier: 'addTimer' HOT 3
- Fix server crashing when receiving POST multipart-formdata request with a body that contains a value of "PUT", "POST", "GET" etc. #13
- Too many new line between response header and body. HOT 1
- Random segmentation fault when using orc and threads more than 1 HOT 5
- set[int32] used that depends on odd compiler behavior
- Using await in handlers appears to have a substantial performance penalty HOT 7
- bump the 0.4.2 version HOT 1
- Not as Fast as Java/Vertx - Configurable buffer sizss?
- Allow to change port for tests HOT 1
- SIGSEGV when running a basic jester 0.6.0 server in nim 2.0 on M1 Mac HOT 3
- Request: Make Github tag for version 0.4.2 HOT 3
- Regarding static directory
- Rumors HOT 1
- http 1.1 request smuggling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpbeast.