Coder Social home page Coder Social logo

Resync libhttpd about wifidog-gateway HOT 15 CLOSED

wifidog avatar wifidog commented on August 24, 2024
Resync libhttpd

from wifidog-gateway.

Comments (15)

acv avatar acv commented on August 24, 2024

HAHAHAHA.

Sorry but no!

Back in 2004 I did this change: 93c94bc

And that broke compatibility with upstream in a big way.

Upstream had the following problems:

  1. All parsing was done with fixed length buffers and no bound checking (buffer overflows everywhere.)
  2. Not threaded/threadable at all.

from wifidog-gateway.

florida63 avatar florida63 commented on August 24, 2024

Just for information: Nodogsplash seems used 1.4.
nodogsplash/nodogsplash@f19ef42

from wifidog-gateway.

acv avatar acv commented on August 24, 2024

Ah, so someone went through the trouble of reapplying the wifidog patches to upstream. I'm not sure of the benefit... But we could merge their update in.

from wifidog-gateway.

acv avatar acv commented on August 24, 2024

In fact, switching to the nodogsplash version of libhttps would be good, they fixed things we missed...

nodogsplash/nodogsplash@f2b83e2

After more checking, I think it's a fairly big project to merge nodogsplash' libhttpd and then cherry pick all the patches only on wifidog's libhttpd. What's the benefit of 1.4 vs. 1.3? The change log doesn't really bring anything to the table.

from wifidog-gateway.

acv avatar acv commented on August 24, 2024

This is the diff between upstream 1.3 and upstream 1.4 (excluding configure):

https://gist.github.com/acv/22ff3b4a64c8b10dc938

Most of the new code needs refactoring to deal with the thread split. The Ember support is another lib from Hughes to embed a tiny scripting language.

from wifidog-gateway.

acv avatar acv commented on August 24, 2024

I think the easiest way forward is to pick from the diff and integrate what makes sense from it and then bump the version. Also go on a fishing expedition in the nodogsplash repo and cherry pick more fixes.

from wifidog-gateway.

acv avatar acv commented on August 24, 2024

So, should we bring in the Text Expansion and Ember support from libhttpd 1.4? Both features seem to be geared to using Ember which is Hughes' embedded web scripting language (which only works with libhttpd and mSQL...)

I haven't in my PR #91

from wifidog-gateway.

mhaas avatar mhaas commented on August 24, 2024

No. I have only 4MB flash. :)

from wifidog-gateway.

acv avatar acv commented on August 24, 2024

Cool, then it's pretty complete.

from wifidog-gateway.

mhaas avatar mhaas commented on August 24, 2024

Then let's merge? I haven't tested it, but I assume you did ;)

from wifidog-gateway.

acv avatar acv commented on August 24, 2024

Somewhat ;-).

from wifidog-gateway.

acv avatar acv commented on August 24, 2024

I'm not nearly as bad as in the early days where if gcc didn't complain, I commited ;-)

from wifidog-gateway.

mhaas avatar mhaas commented on August 24, 2024

Groovy! I would have merged via github, but it can't be merged automatically. :(

from wifidog-gateway.

acv avatar acv commented on August 24, 2024

Merged master back into it. I hope I didn't accidentally remove any code.

from wifidog-gateway.

mhaas avatar mhaas commented on August 24, 2024

Fixed in#91.

from wifidog-gateway.

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.