added hio_svc_htts_task_startreshdr(), hio_svc_htts_task_endreshdr() and others

This commit is contained in:
2023-03-11 02:32:33 +09:00
parent 933d03fe27
commit 86fc103711
7 changed files with 218 additions and 134 deletions

View File

@@ -30,6 +30,7 @@ struct hio_svc_dhcs_t
{
HIO_SVC_HEADER;
int stopping;
hio_dev_sck_t* sck;
};
@@ -122,6 +123,7 @@ hio_svc_dhcs_t* hio_svc_dhcs_start (hio_t* hio, const hio_skad_t* local_binds, h
if (HIO_UNLIKELY(!dhcs)) goto oops;
dhcs->hio = hio;
dhcs->svc_stop = (hio_svc_stop_t)hio_svc_dhcs_stop;
for (i = 0; i < local_nbinds; i++)
{
@@ -151,3 +153,16 @@ oops:
}
return HIO_NULL;
}
void hio_svc_dhcs_stop (hio_svc_dhcs_t* dhcs)
{
hio_t* hio = dhcs->hio;
HIO_DEBUG1 (hio, "FCGIC - STOPPING SERVICE %p\n", dhcs);
dhcs->stopping = 1;
HIO_SVCL_UNLINK_SVC (dhcs);
hio_freemem (hio, dhcs);
HIO_DEBUG1 (hio, "FCGIC - STOPPED SERVICE %p\n", dhcs);
}