lpereira / lwan

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

status_out_msg() should use writev() and get rid of that mutex #78

Closed lpereira closed 9 years ago

lpereira commented 9 years ago

The writes performed by writev() are guaranteed to be atomic, so the mutex used by lwan-status.c can be removed as it's just there to ensure messages won't be garbled if two threads call any lwan_status_*() functions.

lpereira commented 9 years ago

This should also simplify #59.