Comments (5)
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.
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.
Thank you for reporting the issue. I have successfully reproduced the problem.
from h2o.
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.
Changed H2O to send the essential headers with the first letters uppercased.
from h2o.
Related Issues (20)
- Automl Sparkling Water Actual modelling steps: [] HOT 4
- linkedlist unlink segfault HOT 3
- [Question] Clarification on HTTP/3 Support Status HOT 2
- h2o.examp1e.net certificate already expired HOT 1
- HTTP/3 request without :authority
- Question about security report HOT 3
- general 32-bit (i386) support HOT 3
- File Download is not successfull with quic and ipv6 HOT 10
- FreeBSD Ruby issues with 2.3.0-devel HOT 11
- Expect: 100-continue does not work when H2 or H3 is used
- libh2o: Best practices regarding HTTP client HOT 2
- Compile error - Don't know how to build task ..mruby-errno/src/errno.o HOT 1
- libh2o: how to enable WebSocket proxying HOT 1
- recipe for target '...' failed
- Likely bug in handling of header in h2o.conf HOT 1
- missing redis commands (e.g. streaming) HOT 1
- H2O does not validate `Content-Length` values for HTTP/1.1 requests that contain a `Transfer-Encoding: chunked` header. HOT 4
- Question HOT 2
- Memory leak in function 'h2o_socket_log_tcp_congestion_controller'
- support zstd for send-compressed
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 h2o.