>G'Day,
>
>Is there any way to find out if the connection was aborted eg the user
>pressed the stop button or somehow the connection got broken. Currently
>one finds that the script continues on relentessly.
>
>This scenario is important where
>
>1) Tunneling XMLRPC calls. To the client a non-return value is an error.
>However the tcl script processing the xmlrpc call proceeds regardless.
>
>2) Long running database queries - if the connection is broken it would be
>nice to just abort the query and get out of it rather then letting it run
>through.
I don't believe there is any way to detect the user pressing the stop
button as different from any other aborted connection.
>From what I've seen most of the internals of AOLserver handle broken
connections "EPIPE" internally (usually by retrying once) and keep them
from getting up to your application.
Jerry