lpereira / lwan

Experimental, scalable, high performance HTTP server
https://lwan.ws
GNU General Public License v2.0
5.92k stars 549 forks source link

wiki rot: handler not found when following guide #225

Closed diviaki closed 6 years ago

diviaki commented 6 years ago

Follow the wiki up to the point where it added the hello handler to minimal.c, and says: "Rebuild and try running it again."

I did try it but...:

Loading configuration file: lwan.conf.
Error on config file "lwan.conf", line 32: Could not find handler "hello_world".

But hey:

 $ readelf -s lwan|grep hello_ 
60: 0000000000004480    69 FUNC    LOCAL  DEFAULT   13 hello_world
lpereira commented 6 years ago

I've changed recently how to declare a handler. The wiki should be fixed now.

lpereira commented 6 years ago

In fact, if you run lwan --handlers or lwan --modules, it should now list all handlers and modules. This should make it easier to write configuration files.

diviaki commented 6 years ago

OK thanks QC passed :)

diviaki commented 6 years ago

note: example https://lwan.ws is still out of date

lpereira commented 6 years ago

Fixed webpage as well.