Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Nov 28, 2011 11:14 pm 
Offline
Junior Member

Joined: Sun Jun 26, 2011 6:42 pm
Posts: 32
I have a sendMail program sending letters to people in a mailing list. After each email is composed and sent there is a one line message returned to the browser. On my old server the flush() would create a nice steady flow line by line.

I just brought up the same program on my Linode slice and for one thing the send mail is running really slow but that's not really my question. What I can't live with is that it buffers 35 lines before it sends one. I'm ok with this but there are other users of the program and I'm sure they will think something is wrong and bail before the first response from the server. In fact, I'm surprised that the browser didn't time out on the server.

Is there something I can do to configure the server or php.ini to get flush() to do it's thing?


Top
   
 Post subject:
PostPosted: Tue Nov 29, 2011 4:31 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Are you running nginx by any chance? So far as I know flush doesn't work with nginx since it has it's own buffers.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Tue Nov 29, 2011 12:10 pm 
Offline
Junior Member

Joined: Sun Jun 26, 2011 6:42 pm
Posts: 32
No, NGINX is not running on my slice.


Top
   
 Post subject:
PostPosted: Tue Nov 29, 2011 1:17 pm 
Offline
Senior Newbie

Joined: Fri Nov 25, 2011 9:49 pm
Posts: 6
rebrunius wrote:
No, NGINX is not running on my slice.

Surely you mean nginx is not running on my single instance non-rackspace Linode Cloud... :twisted:

More seriously, have you checked http://php.net/manual/en/function.flush.php ??
Seems many things can cause flush to not flush.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group