Problem running streaming API in site throws Mysql server has gone away


#1

I’ve a problem running streaming API in website. It throws Mysql server has gone away in some few seconds after the execution of the script via putty. What should i do now? It tuns for hours locally without any problem. Should i change anything in site?

I was stucked at this point for some weeks & yet to find the soultion. Some help would be much better.
Thanks!