Skip to content

fix: call DELETE properly on HTTP endssas calls.#675

Merged
DMcGee-SAS merged 3 commits into
sassoftware:mainfrom
dmsenter89:fix-compute-session-termination
Jul 8, 2026
Merged

fix: call DELETE properly on HTTP endssas calls.#675
DMcGee-SAS merged 3 commits into
sassoftware:mainfrom
dmsenter89:fix-compute-session-termination

Conversation

@dmsenter89

Copy link
Copy Markdown
Contributor

What does this PR address?

On HTTP connections, SASPy can leave dangling compute pods. The root was that for HTTP connections, SASsession.endsas() didn't call the DELETE endpoint. The bug was introduced by PR #664 which checked the SASconfigHTTP.sess_started attribute introduced in PR #663 as part of a session re-use feature. This appears to have been a typo and the SASsessionHTTP.sess_started was intended.

How does it fix it?

The correct attribute is now being queried in the endssas call:

-       if self._session and self.sascfg.sess_started:
+       if self._session and self.sess_started:

To prevent future misunderstandings, the unused SASconfigHTTP.sess_started attribute was removed from SASconfigHTTP.__init__, since only the SASsessionHTTP.sess_started is in use.

A new test case was added, and my previously contributed test case was merged into the new test file.

Signed-off-by: Michael Senter, PhD dmsenter89@gmail.com

DMcGee-SAS and others added 3 commits July 8, 2026 20:31
Signed-off-by: domcge <don.mcgee@sas.com>
Signed-off-by: Michael Senter <dmsenter89@gmail.com>
PR sassoftware#663 introduced a new sess_started attribute to the SASconfigHTTP
class, while only the sess_started attribute ofthe SASsessionHTTP class
was in use. PR sassoftware#664 then accidentally checked
`SASconfigHTTP.sess_started` as opposed to
`SASsessionHTTP.sess_started`. This commit removes the unused attribute
and fixes the flawed comparison.

Signed-off-by: Michael Senter <dmsenter89@gmail.com>
Signed-off-by: Michael Senter <dmsenter89@gmail.com>
@dmsenter89
dmsenter89 force-pushed the fix-compute-session-termination branch from 8ad582c to 7ac87a4 Compare July 8, 2026 20:32
@DMcGee-SAS
DMcGee-SAS merged commit b7a0092 into sassoftware:main Jul 8, 2026
3 checks passed
@dmsenter89
dmsenter89 deleted the fix-compute-session-termination branch July 8, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants