Aborting during store

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
markw
Posts: 84
Joined: Mon, 2005-01-17, 01:08

Aborting during store

#1 Post by markw »

Hi,

In the storescp example included with dcmtk, there's an option to try aborting a store association mid-connection.

The code I'm looking at is:

Code: Select all

  // determine if the association shall be aborted
  if( (opt_abortDuringStore && progress->state != DIMSE_StoreBegin) ||
      (opt_abortAfterStore && progress->state == DIMSE_StoreEnd) )
  {
    if (opt_verbose)
      printf("ABORT initiated (due to command line options)\n");
    ASC_abortAssociation((OFstatic_cast(StoreCallbackData*, callbackData))->assoc);
    rsp->DimseStatus = STATUS_STORE_Refused_OutOfResources;
    return;
  }
Once that code executes, I do see that no other images are stored. If I am trying to send the process 300 images, and cancel on the 10th image, I'll only get 10 images written to disk - but I see that the SCU application keeps trying to send 290 more store requests (even though they will all fail).

Is there any way to just kill the connection completely as soon as the cancel request is received, so the scu app doesn't even try sending any more images? Just wondering.

Thanks

Michael Onken
DCMTK Developer
Posts: 2051
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#2 Post by Michael Onken »

Hi Mark,

if the SCU receives the abort from the SCP it should be so intelligent to abort abort the connection, too. Do you use storescu or another tool?

Regards,
Michael

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest