we are connecting an application server from a rich client via a HttpInvoker. Whenever the server hangs and/or the user looses patience he should be able to cancel his current action. My question is: How can I cancel a HTTP request started by the HttpInvoker programmatically at the moment the user presses a cancel button? I have to do this, because nearly every server request runs in a seperate client thread and therefore every 'stuck' server request will result in a 'stuck' client thread. And this way the client won't live very long...
Do you have any hint for me?