# fwrite(): SSL operation failed

**URL:** <https://forum.mautic.org/t/fwrite-ssl-operation-failed/2406>\
**Category:** Product Support\
**Created:** [September 24, 2015, 1:07pm UTC](https://forum.mautic.org/t/fwrite-ssl-operation-failed/2406 "2015-09-24T13:07:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![karibu](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@karibu](https://forum.mautic.org/u/karibu)\
**Post date:** [September 24, 2015, 1:07pm UTC](https://forum.mautic.org/t/fwrite-ssl-operation-failed/2406/1 "2015-09-24T13:07:01Z")

</div>

Hi guys,  
  
After running a successful campaign of 5000 leads, I had to run 2 other campaigns with 100 and 3000 leads.  
  
But I am getting the following error message and the mail are not sent:  
  
  
  
PHP Warning: fwrite(): SSL operation failed with code 1. OpenSSL Error messages:  
  
error:1409F07F:SSL routines:SSL3\_WRITE\_PENDING:bad write retry in /var/www/mautic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 232  
  
  
  
Any idea where it can come from?  
  
  
  
Thank you

---

<div class="post-metadata">

**Author:** ![karibu](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@karibu](https://forum.mautic.org/u/karibu)\
**Post date:** [September 24, 2015, 1:07pm UTC](https://forum.mautic.org/t/fwrite-ssl-operation-failed/2406/2 "2015-09-24T13:07:01Z")

</div>

Hi guys,  
After running a successful campaign of 5000 leads, I had to run 2 other campaigns with 100 and 3000 leads.  
But I am getting the following error message and the mail are not sent:

PHP Warning: fwrite(): SSL operation failed with code 1. OpenSSL Error messages:  
error:1409F07F:SSL routines:SSL3\_WRITE\_PENDING:bad write retry in /var/www/mautic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 232

Any idea where it can come from?

Thank you

---

<div class="post-metadata">

**Author:** ![karibu](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@karibu](https://forum.mautic.org/u/karibu)\
**Post date:** [September 24, 2015, 1:47pm UTC](https://forum.mautic.org/t/fwrite-ssl-operation-failed/2406/3 "2015-09-24T13:47:23Z")

</div>

For info, the connection with my SSH server and my crappy connection at home cut.  
It might cause the SSL\_WRITE\_PENDING…  
I had to unpublish the campaign having the issue to run the other one.

But I will have to finish the campaign having this isssue anyway…

---

<div class="post-metadata">

**Author:** ![karibu](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@karibu](https://forum.mautic.org/u/karibu)\
**Post date:** [September 25, 2015, 1:42pm UTC](https://forum.mautic.org/t/fwrite-ssl-operation-failed/2406/4 "2015-09-25T13:42:10Z")

</div>

Any idea how to solve this issue?

Again same issue today with another list…

Thanks

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/fwrite-ssl-operation-failed/2406/5 "2020-02-02T22:58:10Z")

</div>

Closed on February 2, 2020, 10:58pm UTC


