In a message dated 2/18/2002 12:01:25 AM Eastern Standard Time, [EMAIL PROTECTED] writes:
> I'm writing some C code to handle HTTP header parsing inside of AOLserver > (don't ask -- it's for CGI emulation inside of parsed Python scripts) and > I'm running across a problem where a redirect is causing the connection > to close, but the script continues to try to write to it. > > Is there any way to determine if a connection is closed or not through > the C API? I think you should be able to test the NS_CONN_CLOSED conn flags bit: if (conn->flags & NS_CONN_CLOSED) { ... } -Jim