[freetds] Cancellation

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Fri Feb 6 10:48:42 EST 2004


Some more about cancellation

My last idea was:
- additional states (sending query, processing results)
- cancel test state and set a flag or send cancel (and change state)
- querying and processing test cancel request and send it if cancel was
unable to send cancel

New idea is:
- if state is idle ignore cancel request (tds_process_cancel should just
return on idle)
- if state is not idle cancel set a flag (send_cancel or whatever)
- on tds_write_packet test for cancel flag and send cancel (setting
cancel state too), so querying/processing automatically send cancel 
- updating state (ie from QUERYING to PROCESSING) test state (it
shouldn't be CANCEL)
This method seems less intrusive and simpler to implement. 

freddy77



More information about the FreeTDS mailing list