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!
Setting the Timeout
Moderator: Moderator Team
-
- Posts: 1
- Joined: Thu, 2014-12-18, 14:09
- Contact:
Re: Setting the Timeout
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 ?
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 ?
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest