Setting the Timeout

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
metoinside
Posts: 1
Joined: Mon, 2014-11-03, 10:16

Setting the Timeout

#1 Post by metoinside »

Hello hello!

I wonder to learn to set timeout for my project.
Sometimes, connection takes time and I want to close the connection if waited enough time

Well, I have tried to set that with:
-dcmConnectionTimeout.set(seconds)
and also I have tried to
-set setDIMSETimeout(seconds) in DIMSE_NONBLOCKING mode(yes, I knew it only applies for Dimse messages; but I tried)

The both ways weren't work properly. I wonder is there any special use cases for them or how to use them efficiently to wait exactly the time which I gave?
Thanks in advance!

huseyinkozan
Posts: 1
Joined: Thu, 2014-12-18, 14:09
Contact:

Re: Setting the Timeout

#2 Post by huseyinkozan »

Hi,

I am using metoinside's implementation with a QThread wrapper (lets say this ScuThread).
Can we rely on DCMTK's timeouts ?

I have an other option; terminate ScuThread after some desired time.
If I terminate the thread, connection remains open.
Is there any way to ensure this timeout stuff ?

Post Reply

Who is online

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