Code Monkey home page Code Monkey logo

Comments (8)

geekingfrog avatar geekingfrog commented on May 26, 2024

https://en.wikipedia.org/wiki/Slowloris_(computer_security) coucou

from tiny_httpd.

craff avatar craff commented on May 26, 2024

I submitted a pull request #23 that probably address this

from tiny_httpd.

c-cube avatar c-cube commented on May 26, 2024

For slowloris we'd need to also realize that a given query has started more than n seconds ago and isn't parsed yet, a mere timeout doesn't suffice (the client just adds a new fake header every 10 seconds or so).

from tiny_httpd.

craff avatar craff commented on May 26, 2024

I was trying to make my server usable by firefox which it was not with 20 simultaneous access or I would have needed much more max_connections.

Strangly, firefox is creating new connection except when connection is refused, then it tries to reuse old ones. But
when max_connections is reached problem starts ... I saw up to 10 connections for one client with firefox,
most of them unused.

For protection agains DDOS attack, I do not see how to recognize fake request, this is probably undecidable ;-).
A protection agains DDOS is probably to allow a maximum of request by second. But if the attacker has 1000 machines or more,
this seems very hard.

from tiny_httpd.

craff avatar craff commented on May 26, 2024

This is solved ?

from tiny_httpd.

c-cube avatar c-cube commented on May 26, 2024

If you think so, it can be closed :)

from tiny_httpd.

craff avatar craff commented on May 26, 2024

The socket timeout seems to work. I tested it with very short timeout and it was ok.
The only question is do we want a (long) timeout by default ? It the defaut usage of a server written with
Tiny_httpd is behind a proxy (apache or nginx) better have no timeout.

from tiny_httpd.

c-cube avatar c-cube commented on May 26, 2024

I think a default of no timeout is good.

from tiny_httpd.

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.