sem_post before httpserver_write which maybe blocked