selectReadable timeout Override

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
razvanux
Posts: 28
Joined: Thu, 2005-02-10, 08:04
Location: Cluj-Napoca, Romania
Contact:

selectReadable timeout Override

#1 Post by razvanux »

Hello,

in dimmove.cxx, the selectReadable function overrides the timeout parameter passed down through the function-call chain, basically rendering it useless:

start line 121:

Code: Select all

    if (subAssoc == NULL) {
        timeout = 1;    /* poll wait until an assoc req or move rsp */
    } else {
        if (blockMode == DIMSE_BLOCKING) {
            timeout = 10000;    /* a long time */
        }
    }

Is there a good reason for this?
What is the purpose of having DIMSE_NONBLOCKING and a timeout if it gets overridden somewhere in the lower layer functions, with no way to handle this but recompile the dcmnet library?

I would greatly appreciate an eye opener on this.

Thank you for your time,
Razvan C.B.

Post Reply

Who is online

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