-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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 non blocking eof for TLS stream #3752
Conversation
The test seems to be failing on Windows but it was working before in #3223 (see https://ci.appveyor.com/project/php/php-src/build/master.build.6841 ). @weltling what OpenSSL version is now used in AppVeyor (I have tested so far on Linux with 1.0.2 and 1.1.0)? And would you be able to test it locally if you see the same issue? If so it might be interesting to check if rasing proxy usleep changes anything: https://github.com/php/php-src/pull/3752/files#diff-3fbb599e938f2cc62f0620bed8411ee3R79 |
6fc1c1e
to
a0f1afe
Compare
…TLS records) Simplified version of the fix from Abyl Valg so credit to him.
a0f1afe
to
276338a
Compare
It looks like the test is still flaky. I've seen a couple of Travis failures that look like this:
|
@bukka I think you should increase The test was made to show that TLS packet that has been split into 3 fragments must cause exactly 3 You can also decrease the number of fragments from 3 to 2 to speed up the test. |
@bukka As an alternative, you could try using |
@valga My changes just displayed an empty string once instead of 3 times as it behaves differently with OpenSSL 1.1.1 where you get split to more fragments for some reason. Looks that travis doesn't even do any split sometimes so I guess we should probably increase usleep or use |
Sorry was hoping to look to this today but was too busy with other stuff and won't probably have much time over the week so if someone wants to take a look and fix it, that would be great! |
Am I right to understand this bug still exists in php 7.1? |
Seems like that, but PHP 7.1 has been end of life for quite some time already now, see https://www.php.net/supported-versions.php. |
7.1 doesn't support OpenSSL 3.0 so should be not impacted anyway... |
@bukka I looked around, and I don't see anything about openssl version... |
Sorry I confused it with another issue. This is really old though and 7.1 is no longer supported as it was said. |
Updated version of #3223