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

Add extra logging and always cancel eventStreamRequest before setting to nil #1597

Conversation

aringenbach
Copy link
Contributor

Extra logging for element-hq/element-ios#6614 issue

Comment on lines +1683 to +1685
MXLogErrorDetails(@"[MXSession] handleServerSyncError: sync fail is handled by caller, resetting eventStreamRequest might not be handled", @{
@"error": error ?: @"unknown"
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ismailgulek WDYT about this bit ? If the error is a timeout and failure != nil, the eventStreamRequest might not be reset 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah you right. It even makes sense to reset the request here regardless of failure block.

@codecov
Copy link

codecov bot commented Oct 5, 2022

Codecov Report

Base: 13.48% // Head: 13.48% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (88e4164) compared to base (6178f5f).
Patch coverage: 7.14% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1597      +/-   ##
===========================================
- Coverage    13.48%   13.48%   -0.01%     
===========================================
  Files          541      541              
  Lines        86690    86702      +12     
  Branches     36828    36835       +7     
===========================================
+ Hits         11693    11694       +1     
- Misses       74555    74566      +11     
  Partials       442      442              
Impacted Files Coverage Δ
MatrixSDK/MXSession.m 7.99% <7.14%> (+<0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@ismailgulek ismailgulek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines +1683 to +1685
MXLogErrorDetails(@"[MXSession] handleServerSyncError: sync fail is handled by caller, resetting eventStreamRequest might not be handled", @{
@"error": error ?: @"unknown"
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah you right. It even makes sense to reset the request here regardless of failure block.

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