Skip to Content.
Sympa Menu

freetds - [freetds] Cancellation

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: [freetds] Cancellation
  • Date: Fri, 6 Feb 2004 16:48:42 +0100

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




Archive powered by MHonArc 2.6.24.

Top of Page