[En-Nut-Discussion] Question about CGI

tictac tictac at irc.pl
Tue Aug 22 12:31:24 CEST 2006


>Just an idea: Could it be possible that you browser closes the
>connection before you have transfered the whole file and you don't check
>this condition in your code? 
>
Yes this might be the cause, but how can I check if the file (stream) 
descriptor is still valid ?
Can you please give me a hint how to check (in the cgi's function body) 
if the connection with the the browser still exists ?
I tried also to hit "stop" button of my browser before file transfer 
finishes. In such situation my function still writes to the stream but 
there is no restart - write() simply returns some error code, my cgi 
function returns and everything is ok.
Thanks for help :)
Regards,
Paul Melnarowicz





More information about the En-Nut-Discussion mailing list