ellzey/libevhtp — Issue #35: evthr_defer returns EVTHR_RES_RETRY
Author: scott--
Created: 2012-03-07 11:01:09+00:00
State: open

I'm trying to write a simple streaming server (just for MJPEG) and it works, except for many race conditions. One issue is that if I use even a single thread by calling evhtp_use_threads, and then spawn about 10 connections quickly, evthr_defer returns EVTHR_RES_RETRY and the event is not scheduled, but evhtp just ignores the return value, so randomly request events go missing.
--Scott