Fail more quickly when creating an association to an invalid server #615
Replies: 1 comment 2 replies
-
It shouldn't take much longer than the ACSE timeout. Is there anything listening on the IP/port and you're not getting a response, or is there nothing there to connect to? For me, with
The abort mentioned here is actually an A-P-ABORT which is sent to the local user rather than the peer. This is required by the DICOM state machine (its AA-4 in the above output). If I start a socket listening on 11112 (and not responding) then the association fails after the
This abort is an actual A-ABORT sent to the peer (AA-1). From the output we wait until the connection is closed (Evt17) before dropping back to Sta1, which in pynetdicom indicates the end of the Both cases are very quick for me, could you provide more details on your system or maybe a reproducible example? |
Beta Was this translation helpful? Give feedback.
-
When creating a new association to an invalid PACS server (e.g. PACS is down) I want it to fail more quickly. It currently hangs for about 30 seconds. Is there a timeout parameter to adjust for that (
network_timeout
,dimse_timeout
oracse_timeout
don't seem to have an effect on this)?How can I force the faulty association to fail more quickly? [pynetdicom 1.5.3]
EDIT:
I investigated a bit further. The problem is that after the ACSE timeout the association is aborted which then hangs because the kill takes so long. I wonder if this is really necessary as the association was never established in the first place.
Beta Was this translation helpful? Give feedback.
All reactions