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

Fix: Bug fix for SasUri generation failure after disconnecting/connec… #1666

Merged
merged 4 commits into from
Jan 31, 2023

Conversation

tmahmood-microsoft
Copy link
Contributor

@tmahmood-microsoft tmahmood-microsoft commented Jan 27, 2023

The bug was reproducible when once a file is uploaded to blob storage and after client reconnection, the same process fails with null exception.
The issue was missing open() call to HttpsTransportManager object when the device client is opened after disconnection.

Original GitHub issue: #1662

@timtay-microsoft
Copy link
Member

I'd rather see us remove the open/close methods on the HttpsTransportManager since http clients don't have that concept. Similarly, the FileUpload class has nothing to open/close, so we can remove that as well.

With the above, we'd instantiate the FileUpload class once (when the first file upload request is made) and never have to open/close/re-instantiate it again. Thoughts?

@tmahmood-microsoft
Copy link
Contributor Author

I'd rather see us remove the open/close methods on the HttpsTransportManager since http clients don't have that concept. Similarly, the FileUpload class has nothing to open/close, so we can remove that as well.

With the above, we'd instantiate the FileUpload class once (when the first file upload request is made) and never have to open/close/re-instantiate it again. Thoughts?

This makes more sense, yes. Since the HttpsTransportManager object does not get affected by client reconnection, we dont need to close/open it again.

@tmahmood-microsoft
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@tmahmood-microsoft
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@tmahmood-microsoft
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

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.

4 participants