-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
NetworkClientSecure - copyability improvements and _timeout shadowing fixed #9632
NetworkClientSecure - copyability improvements and _timeout shadowing fixed #9632
Conversation
👋 Hello JAndrassy, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
Hi @JAndrassy :) This PR is failing CI. Please fix it and make sure that you add all you might need as breaking changes. Further such PRs will not be accepted until we get to next major version. |
this PR is my last for 3.0.0. I don't consider it a breaking change. the problem with PR checks is with existing code, not with my change: and I don't know how to fix it the right way.
|
@@ -26,6 +26,10 @@ typedef struct sslclient_context { | |||
|
|||
unsigned long socket_timeout; | |||
unsigned long handshake_timeout; | |||
|
|||
int last_error = 0; | |||
int peek_buf = -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are setting here default value -1
and the code calls memset(ssl_client, 0, sizeof(sslclient_context));
which would set it to 0. That is why you are getting the error. Do not add default value like that and make sure that when cleared it is then set properly.
and _timeout shadowing fixed
9052f73
to
da152b5
Compare
so the default values made the struct "non-trivial". thank you |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
The PR has 3 fixes for NetworkClientSecure
test (to test the last error change port to 80)