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 SSL tests and fix some SSL related bugs #3174

Merged
merged 4 commits into from
Jun 11, 2019

Conversation

dipinhora
Copy link
Contributor

This commit adds SSL tests for expect, writev, mute, unmute, and
throttle. As part of adding these tests, some bugs were encountered
and fixed to get the tests to pass.

dipinhora added a commit to dipinhora/ponyc that referenced this pull request Jun 9, 2019
if @BIO_ctrl_pending[USize](_input) > 0 then
read(expect)
else
ifdef "openssl_1.1.x" then
Copy link
Member

Choose a reason for hiding this comment

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

this is openssl 1.1 specific? what did they change that requires this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, SSL_has_pending is new in 1.1. This mailing list post has a good description of what it is for: https://mta.openssl.org/pipermail/openssl-users/2017-January/005110.html

Copy link
Member

Choose a reason for hiding this comment

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

Could you add a link to that in the code? I think it would be quite handy in the future.

@SeanTAllen
Copy link
Member

There's an issue open for adding some SSL tests, does this resolve it?

@dipinhora
Copy link
Contributor Author

There's an issue open for adding some SSL tests, does this resolve it?

I'm not aware of the issue, but yes, this PR resolves the issue as long as there was nothing else in scope.

dipinhora added a commit to dipinhora/ponyc that referenced this pull request Jun 9, 2019
@SeanTAllen
Copy link
Member

@dipinhora i was thinking of #1510 and the corresponding issue #1308.

@SeanTAllen
Copy link
Member

Seems to be a windows issue @dipinhora

This commit adds SSL tests for expect, writev, mute, unmute, and
throttle. As part of adding these tests, some bugs were encountered
and fixed to get the tests to pass.
If, for some reason, TCPConnection is asked to send a 0 byte
payload, don't send it. It is wasteful and the Windows code
around read/write completion doesn't like it (it registers as
an error which results in the connection being closed).
@SeanTAllen SeanTAllen merged commit f218081 into ponylang:master Jun 11, 2019
SeanTAllen pushed a commit that referenced this pull request Jun 11, 2019
@SeanTAllen
Copy link
Member

Thanks @dipinhora

patches11 pushed a commit to patches11/ponyc that referenced this pull request Jun 29, 2019
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