Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Could not figure out which CPU thread 8 should go to" - lwan 0.4 on macOS 10.15.7 #321

Open
herbygillot opened this issue Oct 14, 2021 · 4 comments

Comments

@herbygillot
Copy link

herbygillot commented Oct 14, 2021

lwan v0.4 is failing to start on macOS Cataline ( 10.15.7 ).

Loading configuration file: /opt/macports-test/etc/lwan/lwan.conf
Using 16 threads, maximum 640 sockets per thread
Listening on http://0.0.0.0:80
Could not figure out which CPU thread 8 should go to

Config file:

# Timeout in seconds to keep a connection alive.
keep_alive_timeout = 15

# Set to true to not print any debugging messages. (Only effective in
# release builds.)
quiet = false

# Value of "Expires" header. Default is 1 month and 1 week.
expires = 1M 1w

# Number of I/O threads. Default (0) is number of online CPUs.
threads = 0

# Disable HAProxy's PROXY protocol by default. Only enable if needed.
proxy_protocol = false

# Enable straitjacket by default. The `drop_capabilities` option is `true`
# by default.  Other options may require more privileges.
# straitjacket

listener *:80 {
    serve_files / {
            path = /opt/macports-test/var/www-lwan

            # When requesting for file.ext, look for a smaller/newer file.ext.gz,
            # and serve that instead if `Accept-Encoding: gzip` is in the
            # request headers.
            serve precompressed files = true
    }
}
@herbygillot herbygillot changed the title "Could not figure out which CPU thread 8 should go to" - macOS 10.15.7 "Could not figure out which CPU thread 8 should go to" - lwan 0.4 on macOS 10.15.7 Oct 14, 2021
@lpereira
Copy link
Owner

lpereira commented Oct 14, 2021 via email

@herbygillot
Copy link
Author

So this is building in MacPorts, using the 0.4 codebase, via cmake. I don't see that lwan has a flag to print its version?

@lpereira
Copy link
Owner

lpereira commented Oct 14, 2021 via email

@herbygillot
Copy link
Author

No rush, take your time - thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants