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

error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry #64

Closed
nick4fake opened this issue Dec 5, 2016 · 7 comments
Closed

error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry #64

nick4fake opened this issue Dec 5, 2016 · 7 comments

Comments

@nick4fake
Copy link

It looks like there is currently a bug in PHP:
https://bugs.php.net/bug.php?id=72333

As a temporary solution we could try to limit fwrite data length to 4096 of 8192 bytes, like suggested here:
http://stackoverflow.com/questions/14695247/in-php-openssl-error-messages-error-1409f07f-ssl-routines-ssl3-write-pendin

@clue
Copy link
Member

clue commented Dec 5, 2016

Thanks for reporting this! Looks like nobody has run into this thus far, so I'm really curious about this.

Can you provide a gist that demonstrates this or perhaps even a test case that helps us reproduce this?

@kelunik
Copy link

kelunik commented Apr 26, 2017

The PHP bug has been fixed.

@nick4fake
Copy link
Author

@kelunik yep, I have not verified it yet though

@clue
Copy link
Member

clue commented May 19, 2017

The bug has been present in PHP for years and has been fixed recently via php/php-src@17e9fc9 which landed in 7.1.4 and 7.0.18.

I've just filed PR #105 which allows us to limit the write chunk size, which can be used to work around this for affected versions.

Once #105 is in, I'll close this ticket as resolved and address this in the socket component under the new ticket reactphp/socket#105 👍

@clue
Copy link
Member

clue commented May 19, 2017

Closed via #105

@clue clue closed this as completed May 19, 2017
@clue clue added this to the v0.7.1 milestone May 20, 2017
@nick4fake
Copy link
Author

nick4fake commented Jun 7, 2017

@clue Please keep in mind that setting chunk to lower on PHP before fix just lowers chance of getting the error, but not completely fixes it. Too bad that the only real fix is to update PHP.

In our environment this problem has gone after switching PHP to 7.1.4

@clue
Copy link
Member

clue commented Jun 7, 2017

@nick4fake I concur and believe this is something that is best discussed in reactphp/socket#105 👍

@clue clue changed the title error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry Error when sending large messages over secure HTTPS with older PHP versions Aug 25, 2017
@clue clue changed the title Error when sending large messages over secure HTTPS with older PHP versions error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants