libfast: cancel thread if it fails to accept fcgi sessions

This commit is contained in:
Martin Willi
2013-07-18 12:24:38 +02:00
parent 890f20989f
commit b146ecbc4e
+5 -1
View File
@@ -152,6 +152,10 @@ static fast_session_t* load_session(private_fast_dispatcher_t *this)
context = this->context_constructor(this->param);
}
session = fast_session_create(context);
if (!session)
{
return NULL;
}
enumerator = this->controllers->create_enumerator(this->controllers);
while (enumerator->enumerate(enumerator, &centry))
@@ -306,7 +310,7 @@ static void dispatch(private_fast_dispatcher_t *this)
if (request == NULL)
{
continue;
break;
}
now = time_monotonic(NULL);
sid = request->get_cookie(request, "SID");