question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Release instead of Abort when network_timeout expires

See original GitHub issue

Hello!

I’m using the default network_timeout, which is 60 seconds. After 60 seconds of inactivity, the association aborts

I: Aborting Association
D: Abort Parameters:
D: ============================ BEGIN A-ABORT PDU =============================
D: Abort Source: DUL service-user
D: Abort Reason: No reason given
D: ============================= END A-ABORT PDU ==============================

Is there a way to set the association to get released, rather than aborted, after the timeout expires?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
scaramallioncommented, Dec 27, 2021

I’ve added the Association.network_timeout_response attribute - if you set it to "A-RELEASE" then it’ll do the normal association release instead of abort when the network timeout expires.

0reactions
GreasyAvocadocommented, May 4, 2021

I agree with what you wrote, that’s also how I see it:

release is for “friendly” disconnects while a network timeout is an “unfriendly”

In the meantime we’ve implemented a timeout mechanism in Python, based on this: https://stackoverflow.com/questions/2281850/timeout-function-if-it-takes-too-long-to-finish We now count the time since the association was last active, and properly releases it if it’s been idle for 50 seconds (before the 60 seconds timeout of network_timeout).

If it would be possible to achieve the same natively with pynetdicom, by adding a config option, that would be amazing! It would save us all the timeout logic 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connection (Java Platform SE 7 ) - Oracle Help Center
Releases this Connection object's database and JDBC resources immediately instead of waiting for them to be automatically released. void, commit().
Read more >
Long-Term Decline in US Abortions Reverses, Showing ...
The long-term decline in abortions in the United States that started 30 years ago has reversed, according to new data from the Guttmacher ......
Read more >
With Roe Overturned, What Comes Next for Abortion Rights?
Today's decision revokes the federal constitutional right to abortion, and with it our agency over our lives and futures.
Read more >
Understanding Pregnancy Loss in the Context of Abortion ...
This brief examines how policies aimed at limiting abortion may have negative consequences on people experiencing pregnancy loss.
Read more >
In 6-to-3 Ruling, Supreme Court Ends Nearly 50 Years of ...
The decision will lead to all but total bans on the procedure in about half of the states. ... Abortion ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found