Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing a connection #5

Open
kmcnayr opened this issue Jul 8, 2015 · 1 comment
Open

Closing a connection #5

kmcnayr opened this issue Jul 8, 2015 · 1 comment

Comments

@kmcnayr
Copy link

kmcnayr commented Jul 8, 2015

This is not an issue but I don't know where else to submit a question for feedback.

Is there a way to close a connection using xmla? Following the examples, what do you do when a session is over? I see there is an EndSession definition in the connection module but it doesn't seem like this should be called directly since the corresponding BeginSession is never used by the user. The XMLAProvider and XMLAClass also do not appear to have any close method.

I was thinking there would be a connection.close() method or something similar to cleanly close the connection to the server. It feels weird just letting it hang and hoping the system will close correctly/eventually after a program is executed and closes.

Any comments/guidance are appreciated.

@may-day
Copy link
Owner

may-day commented Jul 12, 2015

The session-thing you mention is unrelated to the open-connection/close-connection issue.
For sessions see this: https://technet.microsoft.com/en-us/library/ms187187%28v=sql.110%29.aspx
As for the connection issue:
Although it's basically (for now) a http-connection (which times out eventually ) i agree we should have an explicit call to close a connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants