LEAR

Infrastructure

web server

SHOW HN2018

LEAR

A simple and fast HTTP server to serve static resources

github.com

#http server#static files#c server#web server performance

66points
32comments
#642of 2,155 in 2018
Top 30%of 2018 by points

How HN took it

CuriousMostly questions and neutral comments

2 positive, 11 neutral or asking, 0 mixed, 8 critical, out of 21 comments about the project. Thread score -0.25.

Execution: 0 for, 5 againstIdea: 1 for, 1 againstPrivacy: 1 for, 1 againstDocs: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Simplicity makes it a promising project to follow

    From 2 comments
    • I think what's missing from this is "Show HN". I don't think anybody is suggesting it be used in place of NGINX or H2O - not yet.
      tjpnz on HN
    • This would be very useful for performance testing
      guidedlight on HN

Objections

  • Not ready for production; lacks HTTPS and security review

    From 2 comments
    • I agree, I don't claim it's ready Please, treat it as interesting project to follow that has just started, and is surely not meant to be deployed in production environments, at…
      mbien on HN
    • Was one of the first things I thought as well. Looking at the github page I'm wondering how it performs compared to something like nginx. Since I won't use something without…
      BlackLotus89 on HN
  • Performance claims unproven; no benchmarks yet

    From 2 comments
    • Any benchmarks?
      matte_black on HN
    • It's great to see people still using C to make web servers ! But can you clarify what are the "state-of-the-art technologies and solutions?" I just skim the project and think…
      quangio on HN
  • Missing tests and documentation

    From 2 comments
    • Kind of off topic but it doesn’t look like there are any tests in this repo. Is that common in the open source C community? I see several people suggesting benchmarks but what…
      haney on HN
    • ... or indeed publicfile. * http://cr.yp.to/publicfile.html * http://jdebp.eu./Softwares/djbwares/guide/httpd.html * http://jdebp.eu./Softwares/nosh/guide/tcp-socket-accept.html…
      JdeBP on HN
  • Possible HTTP header parsing bug and directory traversal concern

    From 2 comments
    • If you're looking for low-hanging-fruit to optimise, there's a ton of "foo = create_string(<some constant>)" and then "delete_string(foo)" not long afterwards in the code. I also…
      userbinator on HN
    • Why? Performance doesn't matter for that use-case. Maybe less features means more secure, on the other hand established projects (or even the basic HTTP implementations in other…
      detaro on HN

Requests

  • Add benchmarks against nginx

    From 3 comments
    • Was one of the first things I thought as well. Looking at the github page I'm wondering how it performs compared to something like nginx. Since I won't use something without…
      BlackLotus89 on HN
    • Any benchmarks?
      matte_black on HN
    • You can use `ab`. I'll post an issue about that.
      CapacitorSet on HN
  • Add HTTPS support

    From 1 comment
    • https is one of the first features I'd like to implement in the near future :) Do you know if there is some framework that I could test my server with, against eg. nginx? I was…
      mbien on HN
  • Add functional tests and manual pages

    From 2 comments
    • Kind of off topic but it doesn’t look like there are any tests in this repo. Is that common in the open source C community? I see several people suggesting benchmarks but what…
      haney on HN
    • ... or indeed publicfile. * http://cr.yp.to/publicfile.html * http://jdebp.eu./Softwares/djbwares/guide/httpd.html * http://jdebp.eu./Softwares/nosh/guide/tcp-socket-accept.html…
      JdeBP on HN

Questions

  • Why use a multiprocess architecture instead of multithreaded

    From 1 comment
  • What are the advantages over nginx or H2O

    From 1 comment
    • - What are the advantages of using this over something more established such as Nginx or H2O? - README mentioned "fully non-blocking architecture," this only refers to network…
      continuations on HN

Alternatives named

  • nginx

    From 2 comments
    • - What are the advantages of using this over something more established such as Nginx or H2O? - README mentioned "fully non-blocking architecture," this only refers to network…
      continuations on HN
    • Why not to use Nginx for this task?
      StreamBright on HN
  • H2O

    From 1 comment
    • - What are the advantages of using this over something more established such as Nginx or H2O? - README mentioned "fully non-blocking architecture," this only refers to network…
      continuations on HN
  • Lwan

    From 1 comment
    • It's great to see people still using C to make web servers ! But can you clarify what are the "state-of-the-art technologies and solutions?" I just skim the project and think…
      quangio on HN
  • publicfile

    From 1 comment
    • ... or indeed publicfile. * http://cr.yp.to/publicfile.html * http://jdebp.eu./Softwares/djbwares/guide/httpd.html * http://jdebp.eu./Softwares/nosh/guide/tcp-socket-accept.html…
      JdeBP on HN
  • Filed

    From 1 comment
    • In this same vein is Filed, it does the minimal amount of work possible before handing off to the kernel to sendfile() the static resource. http://filed.rkeene.org/
      rkeene2 on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/18697910)