Git Product home page Git Product logo

Comments (5)

mingodad avatar mingodad commented on June 16, 2024

Here is the config file:

num-threads: 2
listen: 8080
listen:
port: 8081
ssl:
certificate-file: examples/h2o/server.crt
key-file: examples/h2o/server.key

hosts:
"127.0.0.1.xip.io:8080":
paths:
/:
file.dir: examples/doc_root
access-log: /dev/null

"alternate.127.0.0.1.xip.io:8081":
listen:
port: 8081
#port: h2o_unix
#type: unix
ssl:
certificate-file: examples/h2o/alternate.crt
key-file: examples/h2o/alternate.key
paths:
/:
file.dir: examples/doc_root.alternate
access-log: /dev/null

from h2o.

mingodad avatar mingodad commented on June 16, 2024

Maybe the question that I made about how listener threads are managed have something with this?

mingodadDecember 23, 2014 at 2:46 PM
I was looking at the src/main.c and found that each thread is creating it's own listeners queue using the server listeners. Isn't this a mistake ?
What will happen when there is more than one thread ?
All of then will wakeup and try to manage the accepted socket ?
Why not accepting the listeners only in main process and distribute the accepted sockets to threads after ?

Am I missing something here ?

Cheers !

from h2o.

kazuho avatar kazuho commented on June 16, 2024

Thank you for reporting the issue. I have successfully reproduced the problem.

from h2o.

kazuho avatar kazuho commented on June 16, 2024

The problem is in Apache Bench.

The tool does not implement the HTTP specification correctly; it fails to detect the content-length header all in lowercase letters as H2O sends (see https://github.com/apache/httpd/blob/trunk/support/ab.c#L1581).

from h2o.

kazuho avatar kazuho commented on June 16, 2024

Changed H2O to send the essential headers with the first letters uppercased.

from h2o.

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.