Pergunta

I have the code to write a headers to the fastcgi outstream. In case the write body fails, I want to attempt to write new headers indicating the failure mode without the original headers being sent.

BTW, this is in C.

How can I "unget" FCGX_PutStr() ?

cheers

Foi útil?

Solução

Ok,

You cannot clear a stream directly.

You must free the stream using FCGX_FreeStream(reqDataPtr->out);

You must create a new stream using reqDataPtr->out = NewWriter(reqDataPtr, 8192, FCGI_STDOUT);

cheers

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top