Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6111065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:35:16+00:00 2026-05-23T14:35:16+00:00

On a current project which I’m currently working, i have a symfony task that

  • 0

On a current project which I’m currently working, i have a symfony task that runs some mass data insertion to database and runs it for at least half an hour.
When the task starts a mail notification is sent correctly, the problem is that at the of the task execution we can’t send another mail to notify about the end of processing.

The mailer factory is currently configured with the spool delivery strategy but, in this specific situation, we desire to fire a notification immediately, using the sendNextImmediately() method.

I’m are getting the exception:

[Swift_TransportException]
Expected response code 250 but got code “451”, with message “451 4.4.2 Timeout – closing connection. 74sm1186065wem.17
”

and the flowing error on php log file:

Warning: fwrite(): SSL: Broken pipe in /var/www/project/lib/vendor/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php on line 209

Can anyone give some help?
Is there any way that i can perhaps refresh symfony mailer to establish a new connection?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:35:16+00:00Added an answer on May 23, 2026 at 2:35 pm

    For Symfony1 Users

    My guess was that the connection was being hold for too long (with no activity at all), causing an ssl connection timeout.

    For now, the problem can be solved by stopping the Swift_Transport instance and starting it again explicitly, just before sending the second message.

    Here is the code:

    $this->getMailer()->getRealtimeTransport()->stop();
    $this->getMailer()->getRealtimeTransport()->start();
    $this->getMailer()->sendNextImmediately()->send($message);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some classes in my current project which have the wrong package declaration
I have a requirement on my current project (a Flex app which will be
My current project involves deploying an upgraded .exe file that runs as a Windows
We have a Django project which runs on Google App Engine and used db.UserProperty
In a current project, I have a model called Box that stores items from
within my current project file I have a user control that has a storyboard
I wanted to elaborate on the current project i'm working on but that would
We have a problem with our current TFS installation. For some reason, which I
I'm trying to create a build script for my current project, which includes an
My current project is in Rails. Coming from a Symfony (PHP) and Django (Python)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.