Skip to content

When running as daemon worker, there are SSL errors when attempting to send email #4573

Closed
@wyred

Description

@wyred

I upgraded from 4.1 to 4.2.

Running as queue:work would create SSL errors, but not when running queue:listen.

Using smtp driver with mailgun as the host.

[2014-06-04 02:26:19] production.ERROR: exception 'ErrorException' with message 'fwrite(): SSL operation failed with code 1. OpenSSL Error messages:
error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry' in /var/www/app.dev/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:236
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleError(2, 'fwrite(): SSL o...', '/var/www/queues...', 236, Array)
#1 /var/www/app.dev/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(236): fwrite(Resource id #3337, 'MAIL FROM: <con...')
#2 /var/www/app.dev/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/AbstractFilterableInputStream.php(175): Swift_Transport_StreamBuffer->_commit('MAIL FROM: <con...')
#3 /var/www/app.dev/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/AbstractFilterableInputStream.php(92): Swift_ByteStream_AbstractFilterableInputStream->_doWrite('MAIL FROM: <con...')
...
#30 /var/www/app.dev/artisan(59): Symfony\Component\Console\Application->run()
#31 {main} [] []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions