Title: Flush Buffer to prevent timeout?
Last modified: December 6, 2017

---

# Flush Buffer to prevent timeout?

 *  [bmcdev](https://wordpress.org/support/users/bmcdev/)
 * (@bmcdev)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/flush-buffer-to-prevent-timeout/)
 * The web host I use has a load balancer in front of the web server(s). They have
   a timeout of 30 seconds for receiving data before they throw a 500 timeout error.
 * When I try to view an ad in the admin page, I have every belief that it works,
   but the page is taking longer than 30 seconds to send the first byte back to 
   the client so I’m getting 500 errors purely from the load balancer timeout.
 * Is there a place I could temporarily hard code some sort of flush of the buffer
   back to the client to keep the connection alive? I am looking at moving to a 
   more performant web-host, but would like to put a band-aid in place while I do
   this so I can get Ads working properly asap.
 * Thank you for any help!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fflush-buffer-to-prevent-timeout%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Flush Buffer to prevent timeout?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sam-pro-free_a48db3.svg)
 * [SAM Pro (Free Edition)](https://wordpress.org/plugins/sam-pro-free/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sam-pro-free/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sam-pro-free/)
 * [Active Topics](https://wordpress.org/support/plugin/sam-pro-free/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sam-pro-free/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sam-pro-free/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [bmcdev](https://wordpress.org/support/users/bmcdev/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/flush-buffer-to-prevent-timeout/)
 * Status: not resolved