sijugeorge87 / jaxl

Automatically exported from code.google.com/p/jaxl
GNU General Public License v3.0
0 stars 0 forks source link

fwrite(): SSL operation failed with code 1 #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After some time using, if SSL give error, jaxl crash. I'm using openfire
jabber server.

Warning: fwrite(): SSL operation failed with code 1. OpenSSL Error messages:
error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry in
/home/virtual/bot.nemetic.com/jaxl/xmpp.class.php on line 217

Original issue reported on code.google.com by fidojo...@gmail.com on 11 Mar 2010 at 9:48

GoogleCodeExporter commented 9 years ago
Hi fidojones,

This is more of a known PHP bug rather than Jaxl bug.
Kindly upgrade to stable release version of PHP and related extensions.

Attached is a patch for fixing the same on your local environment.
I experienced similar issues sometime back which were fixed after applying this 
patch
or after upgrading PHP etc.

Hope this helps you out.

Original comment by mailsfor...@gmail.com on 13 Mar 2010 at 7:07

Attachments:

GoogleCodeExporter commented 9 years ago
Ok I upgrade the php to the last version from branch 5.2 and same result. So I 
repack
openssl package 0.9.8g for debian lenny applying the patch and now works 
perfect. I
don't understand why this patch itsn't applyed in official openssl package. 
Thanks
for the tip.

Original comment by fidojo...@gmail.com on 23 Mar 2010 at 5:23

GoogleCodeExporter commented 9 years ago
No problem. I myself discovered this sometime back. Happened for me when my bot 
tried
sending too many xmpp stanza's within a short period.

Original comment by mailsfor...@gmail.com on 23 Mar 2010 at 5:31