views:

151

answers:

1
A: 

This was my solution that is working fine:

Added a method on the callback interface to request a cancellation form the server. On the client side i use a flag that is set to true when te cancelation request is made. Then stop sending data, confirm the cancellation to the server and close the channel (cleaning up the temp files...).

Antonio Dias