-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix for 61285 - SSL connections do not timeout #1038
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
Conversation
Hi. Wondering when this would be pulled... also, do you want my 5.6 fix, or do you just want to get it from this one? |
@bbroerman30 Sorry for the slowness -- I meant to get to this sooner. There is one issue ... the travis build
Seems like we're missing a Also, there's no need for a separate PR for 5.6 -- I'll just pull in your 5.6 branch when merging. |
I think the travis build is incorrect: static size_t php_openssl_sockop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) static size_t php_openssl_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) and the one return at line 239 of php_openssl_sockop_io() and the one at the end (line 334) both return a value (-1 in the event of the first one, and the On 2/3/2015 3:44 PM, Daniel Lowrey wrote:
|
On Wed, Feb 4, 2015 at 2:30 PM, Brad Broerman notifications@github.com
/home/travis/build/php/php-src/ext/openssl/xp_ssl.c:179:2: error: too few Ferenc Kovács |
Hmm. those weren't included in the trunk build, and that worked. Also, I'm not using any of the PHP internal globals, so I didn't think those were needed... I'll add them in. |
Added TSRMLS_CC to php_openssl_sockop_io calls.
duh, I shouldn't reply via mail, or at least should remove the quoted message. |
@Tyrael made the change, but I don't have access to my test system here at the office. I'll run a test when i get home if need be. I looked at the output from the travis build, and didn't see anything related to this extension in the output, so that's a good sign. |
@bbroerman30 yeah looks to be fixed. Will test later this evening in win/nix. |
@rdlowrey Ran the test suite against openssl in Ubuntu 14.04 and all passed. |
Ran the windows tests, and all succeeded. |
Thanks @bbroerman30, I just got the same results with the 5.5 PR here. Will pull in your 5.6 changes tomorrow and test those and should be good to go to merge it all up nice and clean :) |
I have the 5.5/5.6 branches merged locally but currently some ext/openssl tests are failing in master and I'm trying to find out where these errors were introduced. I don't believe it's related to this PR, but I just wanted to give you an update. Once I locate/fix the issue in master I'll finish merging this ... |
Thanks... Let me know if I can help. |
Okay, it seems this is not an "us" problem. The relevant I'll go ahead and merge this upstream in a little while. |
I followed the first method here to patch 5.5.9+dfsg-1ubuntu4.6 on Ubuntu Trusty 14.04 with all 3 commits, but it still doesn't time out with a test script like this. Am I doing something wrong? I know the patches are being applied correctly. Here's my full xp_ssl.c and an strace of test.php run via CLI |
@dhjw I'll see if I can reproduce and get back to you later this weekend |
@dhjw It seems you're correct :) There were a few problems which led to the issue you've observed:
I've corrected each of these problems locally and your reproduce script is now working as expected. I'll update this thread with a link to the appropriate commit once those changes make it up to git and try to get these into the next set of 5.5/5.6 point releases. Thanks for the report 👍 |
Ahh did I miss something? |
Thank you guys for all your efforts. |
@bbroerman30 nah your work was fine (and very much appreciated). The issue was just that crypto streams were never originally setup to work with |
This is a fix for bug 61285 - SSL connections do not timeout, back-ported from trunk