fukamachi / woo

A fast non-blocking HTTP server on top of libev
http://ultra.wikia.com/wiki/Woo_(kaiju)
MIT License
1.28k stars 98 forks source link

Fix *dummy-sockaddr* to be thread-safe. #54

Closed fukamachi closed 8 years ago

fukamachi commented 8 years ago

Woo was used to work with multi-process model, however, it adopts multi-thread and the dummy special variables aren't thread-safe anymore. They need to be allocated for each threads.

knobo commented 8 years ago

Can I start multiple listeners on different ports in one lisp now? Or will there be a problem with the libev event loop?

fukamachi commented 8 years ago

@knobo I never tried, however, I think it can be done with multiple threads running a Woo event loop.