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

cURL error 56 #144

Open
mityukov opened this issue Jan 7, 2021 · 0 comments
Open

cURL error 56 #144

mityukov opened this issue Jan 7, 2021 · 0 comments

Comments

@mityukov
Copy link

mityukov commented Jan 7, 2021

From time to time, I get this error when trying to send email:

cURL error 56: OpenSSL SSL_read: error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac, errno 0 (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

(laravel 7, php 7.3, guzzlehttp v6)

From what I found on the Internet, this could be related to reused connections, so I went on and added 'guzzle' subsection to config:services.sendgrid:

// services.php
<?php

return [

 // ...

 'sendgrid' => [
        'api_key' => env('SENDGRID_API_KEY'),

        'guzzle' => [
            'headers' => ['Connection' => 'close'],
            CURLOPT_FORBID_REUSE => true,
            CURLOPT_FRESH_CONNECT => true,
        ],
    ],

  // ...
];

But, probably, this should be made default or, at least, suggested on the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant