Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To do this you probably want to ensure that the webserver output buffer, PHP's output buffer, and possibly even the TCP stack buffer (if they are all different sizes) are filled with enough test data to get flushed and sent to the browser before calling sleep(), otherwise you won't see much in the client.

On a slightly related note tuning these 3 values and setting them to sizes appropriate for the content you are serving can increase your webservers performance.



flush()




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: